<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




<title>Castle ActiveRecord学习实践（1）：快速入门指南 - TerryLee's Tech Space - 博客园</title>
<meta name="keywords" content="12,开源世界,Castle,ActiveRecord学习实践,快速入门指南">
<meta name="description" content="最近几天有时间看了一下Castle，原来它的功能是如此的强大，从数据访问框架到IOC容器，再到WEB框架，基本包括了整个开发过程中的所有东西，看来得好好学习研究一下了，并且打算把自己学习过程的一些东西记录下来。先从ActiveRecord开始吧，ActiveRecord提供的简洁的O/R映射给我留下了很深的印象，本文将通过一个简单对象的CRUD操作来带你快速走进Castle ActiveRecord。主要内容1．概述2．准备相关的数据表3．编写User实体类4．构建配置信息5．开始CRUD操作6．使用ActiveRecord Generator生成实体类代码">




<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/Terrylee/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/Terrylee/rsd.xml"> 
  



<link rel="stylesheet" type="text/css" href="index.css" media="all">
</head>
<body>
    <form name="Form1" method="post" action="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>




        <link rel="shortcut icon" href="blogengine.ico">
<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle">
	<a id="lnkBlogLogo" href="http://www.cnblogs.com/Terrylee/"><img id="blogLogo" src="logo.gif" alt="返回主页"></a>			
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/Terrylee/">TerryLee's Tech Space</a></h1>
<h2>TerryLee技术专栏</h2>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<!--done-->
			<ul id="navList">
				<li><a id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
				<li><a id="MyLinks1_SpaceLink" class="menu" href="http://space.cnblogs.com/">社区</a></li>
				<li><a id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/Terrylee/">首页</a></li>
				<li><a id="MyLinks1_NewPostLink" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?opt=1">新随笔</a></li>
				<li><a id="MyLinks1_ContactLink" accesskey="9" class="menu" href="http://space.cnblogs.com/msg/send/TerryLee">联系</a></li>
				<li><a id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx">管理</a></li>
				<li><a id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/Terrylee/rss">订阅</a>
				<a id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/Terrylee/rss"><img src="rss.gif" alt="订阅" style="border-width: 0px;"></a></li>
			</ul>


		<div class="blogStats">
			
			
<!--done-->
随笔- 491&nbsp;
文章- 3&nbsp;
评论- 15367&nbsp;

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		
					
<!--done-->
<div id="topics">
	<div class="post">
		<h1 class="postTitle">
			<a id="ctl04_TitleUrl" class="postTitle2" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">Castle ActiveRecord学习实践（1）：快速入门指南</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">摘要：最近几天有时间看了一下<span lang="EN-US">Castle</span>，原来它的功能是如此的强大，从数据访问框架到<span lang="EN-US">IOC</span>容器，再到<span lang="EN-US">WEB</span>框架，基本包括了整个开发过程中的所有东西，看来得好好学习研究一下了，并且打算把自己学习过程的一些东西记录下来。先从<span lang="EN-US">ActiveRecord</span>开始吧，<span lang="EN-US">ActiveRecord</span>提供的简洁的<span lang="EN-US">O/R</span>映射给我留下了很深的印象，本文将通过一个简单对象的<span lang="EN-US">CRUD</span>操作来带你快速走进<span lang="EN-US">Castle ActiveRecord</span>。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">主要内容<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．概述<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．准备相关的数据表<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">3</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．编写<span lang="EN-US">User</span>实体类<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">4</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．构建配置信息<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">5</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．开始<span lang="EN-US">CRUD</span>操作<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">6</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．使用<span lang="EN-US">ActiveRecord Generator</span>生成实体类代码<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">一．概述<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">如果你用过<span lang="EN-US">NHibernate</span>，一定会对在<span lang="EN-US">NHibernate</span>中编写<span lang="EN-US">.hbm.xml</span>文件印象深刻，我也是。而在<span lang="EN-US">Castle ActiveRecord</span>中，我们不用再为编写繁冗复杂的映射文件而头疼，<span lang="EN-US">ActiveRecord</span>是<span lang="EN-US">Castle</span>中提供的一个数据访问框架，它在底层封装了<span lang="EN-US">NHibernate</span>的操作，使用特性来代替映射文件，它提供的简洁的<span lang="EN-US">O/R</span>映射会让你惊叹原来实现持久化数据层是那么简单。下面我们通过一个简单对象的<span lang="EN-US">CRUD</span>操作来快速进入<span lang="EN-US">Castle ActiveRecord</span>。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">二．准备相关的数据表<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">假定数据库中有这样一张用户表，用来保存用户的信息，如下</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">CREATE</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">TABLE</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">dbo</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">Users</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;(<br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">LogonID</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">int</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">IDENTITY</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="font-weight: bold; color: rgb(128, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="font-weight: bold; color: rgb(128, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(128, 128, 128);">NOT</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">NULL</span><span style="color: rgb(0, 0, 0);">&nbsp;,<br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">LogonName</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">varchar</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="font-weight: bold; color: rgb(128, 0, 0);">40</span><span style="color: rgb(0, 0, 0);">)&nbsp;COLLATE&nbsp;Chinese_PRC_CI_AS&nbsp;</span><span style="color: rgb(0, 0, 255);">NULL</span><span style="color: rgb(0, 0, 0);">&nbsp;,<br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">Password</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">varchar</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="font-weight: bold; color: rgb(128, 0, 0);">20</span><span style="color: rgb(0, 0, 0);">)&nbsp;COLLATE&nbsp;Chinese_PRC_CI_AS&nbsp;</span><span style="color: rgb(0, 0, 255);">NULL</span><span style="color: rgb(0, 0, 0);">&nbsp;,<br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">EmailAddress</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">varchar</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="font-weight: bold; color: rgb(128, 0, 0);">40</span><span style="color: rgb(0, 0, 0);">)&nbsp;COLLATE&nbsp;Chinese_PRC_CI_AS&nbsp;</span><span style="color: rgb(0, 0, 255);">NULL</span><span style="color: rgb(0, 0, 0);">&nbsp;,<br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">LastLogon</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">datetime</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">NULL</span><span style="color: rgb(0, 0, 0);">&nbsp;<br><img src="none.gif" align="top">)&nbsp;</span><span style="color: rgb(0, 0, 255);">ON</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">PRIMARY</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">GO</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;"><br>三．编写<span lang="EN-US">User</span>实体类<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">首先我们新建一个<span lang="EN-US">User</span>类并让它继承于</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">ActiveRecordBase</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">类</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img src="none.gif" align="top"><br><img id="Codehighlighter1_38_49_Open_Image" onclick="this.style.display='none'; Codehighlighter1_38_49_Open_Text.style.display='none'; Codehighlighter1_38_49_Closed_Image.style.display='inline'; Codehighlighter1_38_49_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_38_49_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_38_49_Closed_Text.style.display='none'; Codehighlighter1_38_49_Open_Image.style.display='inline'; Codehighlighter1_38_49_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_38_49_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_38_49_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//<br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>为<span lang="EN-US">User</span>类添加特性，其实就是告诉<span lang="EN-US">ActiveRecord</span>，<span lang="EN-US">User</span>类所对应的数据库中的数据表名为<span lang="EN-US">Users</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Users</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img id="Codehighlighter1_61_67_Open_Image" onclick="this.style.display='none'; Codehighlighter1_61_67_Open_Text.style.display='none'; Codehighlighter1_61_67_Closed_Image.style.display='inline'; Codehighlighter1_61_67_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_61_67_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_61_67_Closed_Text.style.display='none'; Codehighlighter1_61_67_Open_Image.style.display='inline'; Codehighlighter1_61_67_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_61_67_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_61_67_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//<br><img src="expandedblockend.gif" align="top"></span><span style="color: rgb(0, 0, 0);">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>下面我们的工作就是为实体类添加属性<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Users</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img id="Codehighlighter1_61_770_Open_Image" onclick="this.style.display='none'; Codehighlighter1_61_770_Open_Text.style.display='none'; Codehighlighter1_61_770_Closed_Image.style.display='inline'; Codehighlighter1_61_770_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_61_770_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_61_770_Closed_Text.style.display='none'; Codehighlighter1_61_770_Open_Image.style.display='inline'; Codehighlighter1_61_770_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_61_770_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_61_770_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;_id;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_password;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_emailAddress;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime&nbsp;_lastLogon;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[PrimaryKey(PrimaryKeyType.Identity,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LogonID</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Id<br><img id="Codehighlighter1_263_311_Open_Image" onclick="this.style.display='none'; Codehighlighter1_263_311_Open_Text.style.display='none'; Codehighlighter1_263_311_Closed_Image.style.display='inline'; Codehighlighter1_263_311_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_263_311_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_263_311_Closed_Text.style.display='none'; Codehighlighter1_263_311_Open_Image.style.display='inline'; Codehighlighter1_263_311_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_263_311_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_263_311_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_271_285_Open_Image" onclick="this.style.display='none'; Codehighlighter1_271_285_Open_Text.style.display='none'; Codehighlighter1_271_285_Closed_Image.style.display='inline'; Codehighlighter1_271_285_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_271_285_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_271_285_Closed_Text.style.display='none'; Codehighlighter1_271_285_Open_Image.style.display='inline'; Codehighlighter1_271_285_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_271_285_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_271_285_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_id;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_293_308_Open_Image" onclick="this.style.display='none'; Codehighlighter1_293_308_Open_Text.style.display='none'; Codehighlighter1_293_308_Closed_Image.style.display='inline'; Codehighlighter1_293_308_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_293_308_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_293_308_Closed_Text.style.display='none'; Codehighlighter1_293_308_Open_Image.style.display='inline'; Codehighlighter1_293_308_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_293_308_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_293_308_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LogonName</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Name<br><img id="Codehighlighter1_361_413_Open_Image" onclick="this.style.display='none'; Codehighlighter1_361_413_Open_Text.style.display='none'; Codehighlighter1_361_413_Closed_Image.style.display='inline'; Codehighlighter1_361_413_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_361_413_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_361_413_Closed_Text.style.display='none'; Codehighlighter1_361_413_Open_Image.style.display='inline'; Codehighlighter1_361_413_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_361_413_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_361_413_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_369_385_Open_Image" onclick="this.style.display='none'; Codehighlighter1_369_385_Open_Text.style.display='none'; Codehighlighter1_369_385_Closed_Image.style.display='inline'; Codehighlighter1_369_385_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_369_385_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_369_385_Closed_Text.style.display='none'; Codehighlighter1_369_385_Open_Image.style.display='inline'; Codehighlighter1_369_385_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_369_385_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_369_385_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_393_410_Open_Image" onclick="this.style.display='none'; Codehighlighter1_393_410_Open_Text.style.display='none'; Codehighlighter1_393_410_Closed_Image.style.display='inline'; Codehighlighter1_393_410_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_393_410_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_393_410_Closed_Text.style.display='none'; Codehighlighter1_393_410_Open_Image.style.display='inline'; Codehighlighter1_393_410_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_393_410_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_393_410_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Password</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Password<br><img id="Codehighlighter1_466_526_Open_Image" onclick="this.style.display='none'; Codehighlighter1_466_526_Open_Text.style.display='none'; Codehighlighter1_466_526_Closed_Image.style.display='inline'; Codehighlighter1_466_526_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_466_526_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_466_526_Closed_Text.style.display='none'; Codehighlighter1_466_526_Open_Image.style.display='inline'; Codehighlighter1_466_526_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_466_526_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_466_526_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_474_494_Open_Image" onclick="this.style.display='none'; Codehighlighter1_474_494_Open_Text.style.display='none'; Codehighlighter1_474_494_Closed_Image.style.display='inline'; Codehighlighter1_474_494_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_474_494_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_474_494_Closed_Text.style.display='none'; Codehighlighter1_474_494_Open_Image.style.display='inline'; Codehighlighter1_474_494_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_474_494_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_474_494_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_password;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_502_523_Open_Image" onclick="this.style.display='none'; Codehighlighter1_502_523_Open_Text.style.display='none'; Codehighlighter1_502_523_Closed_Image.style.display='inline'; Codehighlighter1_502_523_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_502_523_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_502_523_Closed_Text.style.display='none'; Codehighlighter1_502_523_Open_Image.style.display='inline'; Codehighlighter1_502_523_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_502_523_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_502_523_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_password&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EmailAddress</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Address<br><img id="Codehighlighter1_582_650_Open_Image" onclick="this.style.display='none'; Codehighlighter1_582_650_Open_Text.style.display='none'; Codehighlighter1_582_650_Closed_Image.style.display='inline'; Codehighlighter1_582_650_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_582_650_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_582_650_Closed_Text.style.display='none'; Codehighlighter1_582_650_Open_Image.style.display='inline'; Codehighlighter1_582_650_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_582_650_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_582_650_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_590_614_Open_Image" onclick="this.style.display='none'; Codehighlighter1_590_614_Open_Text.style.display='none'; Codehighlighter1_590_614_Closed_Image.style.display='inline'; Codehighlighter1_590_614_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_590_614_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_590_614_Closed_Text.style.display='none'; Codehighlighter1_590_614_Open_Image.style.display='inline'; Codehighlighter1_590_614_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_590_614_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_590_614_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_emailAddress;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_622_647_Open_Image" onclick="this.style.display='none'; Codehighlighter1_622_647_Open_Text.style.display='none'; Codehighlighter1_622_647_Closed_Image.style.display='inline'; Codehighlighter1_622_647_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_622_647_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_622_647_Closed_Text.style.display='none'; Codehighlighter1_622_647_Open_Image.style.display='inline'; Codehighlighter1_622_647_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_622_647_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_622_647_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_emailAddress&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LastLogon</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime&nbsp;LastLogon<br><img id="Codehighlighter1_707_768_Open_Image" onclick="this.style.display='none'; Codehighlighter1_707_768_Open_Text.style.display='none'; Codehighlighter1_707_768_Closed_Image.style.display='inline'; Codehighlighter1_707_768_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_707_768_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_707_768_Closed_Text.style.display='none'; Codehighlighter1_707_768_Open_Image.style.display='inline'; Codehighlighter1_707_768_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_707_768_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_707_768_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_715_736_Open_Image" onclick="this.style.display='none'; Codehighlighter1_715_736_Open_Text.style.display='none'; Codehighlighter1_715_736_Closed_Image.style.display='inline'; Codehighlighter1_715_736_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_715_736_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_715_736_Closed_Text.style.display='none'; Codehighlighter1_715_736_Open_Image.style.display='inline'; Codehighlighter1_715_736_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_715_736_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_715_736_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_lastLogon;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_744_765_Open_Image" onclick="this.style.display='none'; Codehighlighter1_744_765_Open_Text.style.display='none'; Codehighlighter1_744_765_Closed_Image.style.display='inline'; Codehighlighter1_744_765_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_744_765_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_744_765_Closed_Text.style.display='none'; Codehighlighter1_744_765_Open_Image.style.display='inline'; Codehighlighter1_744_765_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_744_765_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_744_765_Open_Text"><span style="color: rgb(0, 0, 0);">{_lastLogon&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>大家可能注意到了，每一个属性上面都加上了特性<span lang="EN-US">[Property()]</span>。简单的说明一下，这里用<span lang="EN-US">[</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">PrimaryKey]</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">特性</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">指定<span lang="EN-US">Id</span>作为主键，并且说明了主键的类型为自增型的，用</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">PrimaryKeyType<span style="color: fuchsia;">.</span>Identity</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">来说明，在后续文章中我会详细说明的</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">。如果属性名和字段名一致，<span lang="EN-US">[Property()]</span>中可以为空，也可以写上字段的名字。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">下一步我们为实体类根据需要加上静态的操作方法，至于<span lang="EN-US">Create()</span>，<span lang="EN-US">Update()</span>，<span lang="EN-US">Delete()</span>，<span lang="EN-US">Save()</span>等方法则会直接从</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">ActiveRecordBase</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">基类中继承</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Users</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img id="Codehighlighter1_61_311_Open_Image" onclick="this.style.display='none'; Codehighlighter1_61_311_Open_Text.style.display='none'; Codehighlighter1_61_311_Closed_Image.style.display='inline'; Codehighlighter1_61_311_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_61_311_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_61_311_Closed_Text.style.display='none'; Codehighlighter1_61_311_Open_Image.style.display='inline'; Codehighlighter1_61_311_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_61_311_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_61_311_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">……</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top"></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;DeleteAll()<br><img id="Codehighlighter1_103_135_Open_Image" onclick="this.style.display='none'; Codehighlighter1_103_135_Open_Text.style.display='none'; Codehighlighter1_103_135_Closed_Image.style.display='inline'; Codehighlighter1_103_135_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_103_135_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_103_135_Closed_Text.style.display='none'; Codehighlighter1_103_135_Open_Image.style.display='inline'; Codehighlighter1_103_135_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_103_135_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_103_135_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DeleteAll(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;IList&nbsp;FindAll()<br><img id="Codehighlighter1_170_215_Open_Image" onclick="this.style.display='none'; Codehighlighter1_170_215_Open_Text.style.display='none'; Codehighlighter1_170_215_Closed_Image.style.display='inline'; Codehighlighter1_170_215_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_170_215_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_170_215_Closed_Text.style.display='none'; Codehighlighter1_170_215_Open_Image.style.display='inline'; Codehighlighter1_170_215_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_170_215_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_170_215_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;(IList)&nbsp;FindAll(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;Find(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;id)<br><img id="Codehighlighter1_252_309_Open_Image" onclick="this.style.display='none'; Codehighlighter1_252_309_Open_Text.style.display='none'; Codehighlighter1_252_309_Closed_Image.style.display='inline'; Codehighlighter1_252_309_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_252_309_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_252_309_Closed_Text.style.display='none'; Codehighlighter1_252_309_Open_Image.style.display='inline'; Codehighlighter1_252_309_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_252_309_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_252_309_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;(User)&nbsp;FindByPrimaryKey(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User),&nbsp;id&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">整个完成后的实体类代码<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">using</span><span style="color: rgb(0, 0, 0);">&nbsp;System;<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">using</span><span style="color: rgb(0, 0, 0);">&nbsp;System.Collections;<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">using</span><span style="color: rgb(0, 0, 0);">&nbsp;Castle.ActiveRecord;<br><img src="none.gif" align="top"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">namespace</span><span style="color: rgb(0, 0, 0);">&nbsp;ARDemo<br><img id="Codehighlighter1_85_1204_Open_Image" onclick="this.style.display='none'; Codehighlighter1_85_1204_Open_Text.style.display='none'; Codehighlighter1_85_1204_Closed_Image.style.display='inline'; Codehighlighter1_85_1204_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_85_1204_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_85_1204_Closed_Text.style.display='none'; Codehighlighter1_85_1204_Open_Image.style.display='inline'; Codehighlighter1_85_1204_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_85_1204_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_85_1204_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_88_134_Open_Image" onclick="this.style.display='none'; Codehighlighter1_88_134_Open_Text.style.display='none'; Codehighlighter1_88_134_Closed_Image.style.display='inline'; Codehighlighter1_88_134_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_88_134_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_88_134_Closed_Text.style.display='none'; Codehighlighter1_88_134_Open_Image.style.display='inline'; Codehighlighter1_88_134_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_88_134_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);">/**/</span><span id="Codehighlighter1_88_134_Open_Text"><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;summary&gt;</span><span style="color: rgb(0, 128, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;User&nbsp;的摘要说明。<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 128, 128);">///</span><span style="color: rgb(0, 128, 0);">&nbsp;</span><span style="color: rgb(128, 128, 128);">&lt;/summary&gt;</span><span style="color: rgb(128, 128, 128);"></span></span><br><img src="inblock.gif" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Users</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img id="Codehighlighter1_199_1202_Open_Image" onclick="this.style.display='none'; Codehighlighter1_199_1202_Open_Text.style.display='none'; Codehighlighter1_199_1202_Closed_Image.style.display='inline'; Codehighlighter1_199_1202_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_199_1202_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_199_1202_Closed_Text.style.display='none'; Codehighlighter1_199_1202_Open_Image.style.display='inline'; Codehighlighter1_199_1202_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_199_1202_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_199_1202_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;_id;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_password;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_emailAddress;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime&nbsp;_lastLogon;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[PrimaryKey(PrimaryKeyType.Identity,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LogonID</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;Id<br><img id="Codehighlighter1_409_460_Open_Image" onclick="this.style.display='none'; Codehighlighter1_409_460_Open_Text.style.display='none'; Codehighlighter1_409_460_Closed_Image.style.display='inline'; Codehighlighter1_409_460_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_409_460_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_409_460_Closed_Text.style.display='none'; Codehighlighter1_409_460_Open_Image.style.display='inline'; Codehighlighter1_409_460_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_409_460_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_409_460_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_418_432_Open_Image" onclick="this.style.display='none'; Codehighlighter1_418_432_Open_Text.style.display='none'; Codehighlighter1_418_432_Closed_Image.style.display='inline'; Codehighlighter1_418_432_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_418_432_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_418_432_Closed_Text.style.display='none'; Codehighlighter1_418_432_Open_Image.style.display='inline'; Codehighlighter1_418_432_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_418_432_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_418_432_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_id;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_441_456_Open_Image" onclick="this.style.display='none'; Codehighlighter1_441_456_Open_Text.style.display='none'; Codehighlighter1_441_456_Closed_Image.style.display='inline'; Codehighlighter1_441_456_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_441_456_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_441_456_Closed_Text.style.display='none'; Codehighlighter1_441_456_Open_Image.style.display='inline'; Codehighlighter1_441_456_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_441_456_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_441_456_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LogonName</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Name<br><img id="Codehighlighter1_514_569_Open_Image" onclick="this.style.display='none'; Codehighlighter1_514_569_Open_Text.style.display='none'; Codehighlighter1_514_569_Closed_Image.style.display='inline'; Codehighlighter1_514_569_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_514_569_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_514_569_Closed_Text.style.display='none'; Codehighlighter1_514_569_Open_Image.style.display='inline'; Codehighlighter1_514_569_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_514_569_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_514_569_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_523_539_Open_Image" onclick="this.style.display='none'; Codehighlighter1_523_539_Open_Text.style.display='none'; Codehighlighter1_523_539_Closed_Image.style.display='inline'; Codehighlighter1_523_539_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_523_539_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_523_539_Closed_Text.style.display='none'; Codehighlighter1_523_539_Open_Image.style.display='inline'; Codehighlighter1_523_539_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_523_539_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_523_539_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_name;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_548_565_Open_Image" onclick="this.style.display='none'; Codehighlighter1_548_565_Open_Text.style.display='none'; Codehighlighter1_548_565_Closed_Image.style.display='inline'; Codehighlighter1_548_565_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_548_565_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_548_565_Closed_Text.style.display='none'; Codehighlighter1_548_565_Open_Image.style.display='inline'; Codehighlighter1_548_565_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_548_565_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_548_565_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Password</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Password<br><img id="Codehighlighter1_626_689_Open_Image" onclick="this.style.display='none'; Codehighlighter1_626_689_Open_Text.style.display='none'; Codehighlighter1_626_689_Closed_Image.style.display='inline'; Codehighlighter1_626_689_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_626_689_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_626_689_Closed_Text.style.display='none'; Codehighlighter1_626_689_Open_Image.style.display='inline'; Codehighlighter1_626_689_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_626_689_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_626_689_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_635_655_Open_Image" onclick="this.style.display='none'; Codehighlighter1_635_655_Open_Text.style.display='none'; Codehighlighter1_635_655_Closed_Image.style.display='inline'; Codehighlighter1_635_655_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_635_655_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_635_655_Closed_Text.style.display='none'; Codehighlighter1_635_655_Open_Image.style.display='inline'; Codehighlighter1_635_655_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_635_655_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_635_655_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_password;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_664_685_Open_Image" onclick="this.style.display='none'; Codehighlighter1_664_685_Open_Text.style.display='none'; Codehighlighter1_664_685_Closed_Image.style.display='inline'; Codehighlighter1_664_685_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_664_685_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_664_685_Closed_Text.style.display='none'; Codehighlighter1_664_685_Open_Image.style.display='inline'; Codehighlighter1_664_685_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_664_685_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_664_685_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_password&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EmailAddress</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Address<br><img id="Codehighlighter1_749_820_Open_Image" onclick="this.style.display='none'; Codehighlighter1_749_820_Open_Text.style.display='none'; Codehighlighter1_749_820_Closed_Image.style.display='inline'; Codehighlighter1_749_820_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_749_820_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_749_820_Closed_Text.style.display='none'; Codehighlighter1_749_820_Open_Image.style.display='inline'; Codehighlighter1_749_820_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_749_820_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_749_820_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_758_782_Open_Image" onclick="this.style.display='none'; Codehighlighter1_758_782_Open_Text.style.display='none'; Codehighlighter1_758_782_Closed_Image.style.display='inline'; Codehighlighter1_758_782_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_758_782_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_758_782_Closed_Text.style.display='none'; Codehighlighter1_758_782_Open_Image.style.display='inline'; Codehighlighter1_758_782_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_758_782_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_758_782_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_emailAddress;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_791_816_Open_Image" onclick="this.style.display='none'; Codehighlighter1_791_816_Open_Text.style.display='none'; Codehighlighter1_791_816_Closed_Image.style.display='inline'; Codehighlighter1_791_816_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_791_816_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_791_816_Closed_Text.style.display='none'; Codehighlighter1_791_816_Open_Image.style.display='inline'; Codehighlighter1_791_816_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_791_816_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_791_816_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;_emailAddress&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">LastLogon</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime&nbsp;LastLogon<br><img id="Codehighlighter1_881_945_Open_Image" onclick="this.style.display='none'; Codehighlighter1_881_945_Open_Text.style.display='none'; Codehighlighter1_881_945_Closed_Image.style.display='inline'; Codehighlighter1_881_945_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_881_945_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_881_945_Closed_Text.style.display='none'; Codehighlighter1_881_945_Open_Image.style.display='inline'; Codehighlighter1_881_945_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_881_945_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_881_945_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img id="Codehighlighter1_890_911_Open_Image" onclick="this.style.display='none'; Codehighlighter1_890_911_Open_Text.style.display='none'; Codehighlighter1_890_911_Closed_Image.style.display='inline'; Codehighlighter1_890_911_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_890_911_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_890_911_Closed_Text.style.display='none'; Codehighlighter1_890_911_Open_Image.style.display='inline'; Codehighlighter1_890_911_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_890_911_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_890_911_Open_Text"><span style="color: rgb(0, 0, 0);">{&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;_lastLogon;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_920_941_Open_Image" onclick="this.style.display='none'; Codehighlighter1_920_941_Open_Text.style.display='none'; Codehighlighter1_920_941_Closed_Image.style.display='inline'; Codehighlighter1_920_941_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_920_941_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_920_941_Closed_Text.style.display='none'; Codehighlighter1_920_941_Open_Image.style.display='inline'; Codehighlighter1_920_941_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span id="Codehighlighter1_920_941_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_920_941_Open_Text"><span style="color: rgb(0, 0, 0);">{_lastLogon&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;DeleteAll()<br><img id="Codehighlighter1_983_1017_Open_Image" onclick="this.style.display='none'; Codehighlighter1_983_1017_Open_Text.style.display='none'; Codehighlighter1_983_1017_Closed_Image.style.display='inline'; Codehighlighter1_983_1017_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_983_1017_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_983_1017_Closed_Text.style.display='none'; Codehighlighter1_983_1017_Open_Image.style.display='inline'; Codehighlighter1_983_1017_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_983_1017_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_983_1017_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DeleteAll(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;IList&nbsp;FindAll()<br><img id="Codehighlighter1_1054_1101_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1054_1101_Open_Text.style.display='none'; Codehighlighter1_1054_1101_Closed_Image.style.display='inline'; Codehighlighter1_1054_1101_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1054_1101_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1054_1101_Closed_Text.style.display='none'; Codehighlighter1_1054_1101_Open_Image.style.display='inline'; Codehighlighter1_1054_1101_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1054_1101_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1054_1101_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;(IList)&nbsp;FindAll(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;Find(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;id)<br><img id="Codehighlighter1_1140_1199_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1140_1199_Open_Text.style.display='none'; Codehighlighter1_1140_1199_Closed_Image.style.display='inline'; Codehighlighter1_1140_1199_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1140_1199_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1140_1199_Closed_Text.style.display='none'; Codehighlighter1_1140_1199_Open_Image.style.display='inline'; Codehighlighter1_1140_1199_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1140_1199_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1140_1199_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;(User)&nbsp;FindByPrimaryKey(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User),&nbsp;id&nbsp;);<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">四．构建配置信息<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">现在我们要告诉<span lang="EN-US">ActiveRecord</span>相关的数据库、数据驱动等信息，最简单的就是使用配置文件<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 255);">&lt;?</span><span style="color: rgb(255, 0, 255);">xml&nbsp;version="1.0"&nbsp;encoding="utf-8"&nbsp;</span><span style="color: rgb(0, 0, 255);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configSections</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">section&nbsp;</span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="activerecord"</span><span style="color: rgb(255, 0, 0);">&nbsp;type</span><span style="color: rgb(0, 0, 255);">="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler,&nbsp;Castle.ActiveRecord"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configSections</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.driver_class"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Driver.SqlClientDriver"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Dialect.MsSql2000Dialect"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.provider"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="NHibernate.Connection.DriverConnectionProvider"</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">add&nbsp;</span><span style="color: rgb(255, 0, 0);">key</span><span style="color: rgb(0, 0, 255);">="hibernate.connection.connection_string"</span><span style="color: rgb(255, 0, 0);">&nbsp;value</span><span style="color: rgb(0, 0, 255);">="UID=sa;Password=sa;Initial&nbsp;Catalog=ARDemo;Data&nbsp;Source=."</span><span style="color: rgb(255, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">config</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>用过<span lang="EN-US">NHibernate</span>的朋友一定会对这段配置代码很熟悉，没错，因为<span lang="EN-US">ActiveRecord</span>在底层封装了<span lang="EN-US">NHibernate</span>，所以这里的配置跟使用<span lang="EN-US">NHibernate</span>时的配置一样，同样是指定了数据源驱动，连接字符串等信息。如果使用了配置文件在代码中只要这样去初始化就可以了<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">IConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;System.Configuration.ConfigurationSettings.GetConfig(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">activerecord</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 255);">as</span><span style="color: rgb(0, 0, 0);">&nbsp;IConfigurationSource;<br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>我们也可以不使用配置文件，而使用代码指定的方式，但是由于这种方式相当于硬编码了，不大推荐大家使用这种方式：<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">InPlaceConfigurationSource&nbsp;source&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;InPlaceConfigurationSource();<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">Hashtable&nbsp;properties&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;Hashtable();<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Driver.SqlClientDriver</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Dialect.MsSql2000Dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.provider</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">NHibernate.Connection.DriverConnectionProvider</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top">properties.Add(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.connection_string</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">UID=sa;Password=19811218;Initial&nbsp;Catalog=ARDemo;Data&nbsp;Source=.</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">source.Add(&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(ActiveRecordBase),&nbsp;properties&nbsp;);<br><img src="none.gif" align="top"><br><img src="none.gif" align="top">ActiveRecordStarter.Initialize(&nbsp;source,&nbsp;</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User)&nbsp;);</span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;">&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">五．开始<span lang="EN-US">CRUD</span>操作<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">好了，经过了前面的步骤之后，就可以正式开始我们的对象<span lang="EN-US">CRUD</span>操作了。<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．增加<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;AddUser()<br><img id="Codehighlighter1_29_192_Open_Image" onclick="this.style.display='none'; Codehighlighter1_29_192_Open_Text.style.display='none'; Codehighlighter1_29_192_Closed_Image.style.display='inline'; Codehighlighter1_29_192_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_29_192_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_29_192_Closed_Text.style.display='none'; Codehighlighter1_29_192_Open_Image.style.display='inline'; Codehighlighter1_29_192_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_29_192_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_29_192_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;user&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;User();<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Terrylee</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Password&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">aaa</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Address&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><span><a href="mailto:lhj_cauc@163.com" class="smarterwiki-linkify">lhj_cauc@163.com</a></span></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.LastLogon&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime.Now;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Create();<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>是不是非常简单？我们甚至都没有写过<span lang="EN-US">Create()</span>方法，它直接从<span lang="EN-US">ActiveRecordBase</span>类继承。我们所做的只是创建这样一个<span lang="EN-US">User</span>对象，然后调用它的方法就可以了。<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．查询所有的<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;FildAll()<br><img id="Codehighlighter1_29_169_Open_Image" onclick="this.style.display='none'; Codehighlighter1_29_169_Open_Text.style.display='none'; Codehighlighter1_29_169_Closed_Image.style.display='inline'; Codehighlighter1_29_169_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_29_169_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_29_169_Closed_Text.style.display='none'; Codehighlighter1_29_169_Open_Image.style.display='inline'; Codehighlighter1_29_169_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_29_169_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_29_169_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;IList&nbsp;list&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;User.FindAll();<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsNotNull(list);<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;actual&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;list.Count;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;expected&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;Assert.AreEqual(expected,actual);<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>3<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．查询某一个指定<span lang="EN-US">Id</span>的<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;Fild()<br><img id="Codehighlighter1_26_182_Open_Image" onclick="this.style.display='none'; Codehighlighter1_26_182_Open_Text.style.display='none'; Codehighlighter1_26_182_Closed_Image.style.display='inline'; Codehighlighter1_26_182_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_26_182_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_26_182_Closed_Text.style.display='none'; Codehighlighter1_26_182_Open_Image.style.display='inline'; Codehighlighter1_26_182_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_26_182_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_26_182_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;actual&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;User.Find(id);<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;Assert.IsNotNull(actual);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;Assert.AreEqual(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Terrylee</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,actual.Name);<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;Assert.AreEqual(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">aaa</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,actual.Password);<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>4<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．修改<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;UpdateUser()<br><img id="Codehighlighter1_32_202_Open_Image" onclick="this.style.display='none'; Codehighlighter1_32_202_Open_Text.style.display='none'; Codehighlighter1_32_202_Closed_Image.style.display='inline'; Codehighlighter1_32_202_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_32_202_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_32_202_Closed_Text.style.display='none'; Codehighlighter1_32_202_Open_Image.style.display='inline'; Codehighlighter1_32_202_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_32_202_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_32_202_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;user&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;User();<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Aero</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Password&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">aaa</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Address&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><span><a href="mailto:chwkai@163.com" class="smarterwiki-linkify">chwkai@163.com</a></span></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.LastLogon&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;DateTime.Now;<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Update();<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>5<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．删除<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;DeleteUser()<br><img id="Codehighlighter1_32_90_Open_Image" onclick="this.style.display='none'; Codehighlighter1_32_90_Open_Text.style.display='none'; Codehighlighter1_32_90_Closed_Image.style.display='inline'; Codehighlighter1_32_90_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_32_90_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_32_90_Closed_Text.style.display='none'; Codehighlighter1_32_90_Open_Image.style.display='inline'; Codehighlighter1_32_90_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_32_90_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_32_90_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;User&nbsp;user&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;User();<br><img src="inblock.gif" align="top"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Id&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">7</span><span style="color: rgb(0, 0, 0);">;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;user.Delete();<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>6<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．删除所有的<span lang="EN-US">User</span>对象<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 0, 0);">[Test]<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;DeleteAll()<br><img id="Codehighlighter1_31_52_Open_Image" onclick="this.style.display='none'; Codehighlighter1_31_52_Open_Text.style.display='none'; Codehighlighter1_31_52_Closed_Image.style.display='inline'; Codehighlighter1_31_52_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_31_52_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_31_52_Closed_Text.style.display='none'; Codehighlighter1_31_52_Open_Image.style.display='inline'; Codehighlighter1_31_52_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_31_52_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_31_52_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;User.DeleteAll();<br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><br>可以看到，整个过程非常的简洁简单，没有一点多余复杂的代码，相信你已经开始体会到了<span lang="EN-US">ActiveRecord</span>的魅力了。唯一有一点你会感到不舒服的是已经有了数据库表还需要手工编写实体类代码，这个不用担心，<span lang="EN-US">ActiveRecord</span>已经为我们提供了代码生成工具<span lang="EN-US">ActiveRecord Generator</span>。<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">六．使用<span lang="EN-US">ActiveRecord Generator</span>生成实体类代码<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">1</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．执行<span lang="EN-US">Castle.ActiveRecord.Generator.exe</span>，位于目录<span lang="EN-US">C:\Program Files\Castle\Bin\net-1.1\</span>下面，可以看到如下界面，选择<span lang="EN-US">Project Explorer</span>面板<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: center;" align="center"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><img alt="" src="activerecord_0101.jpg" border="0" height="368" width="628"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">2</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．点击“<span lang="EN-US">Add DataBase Connection</span>”图标，如下图中红色方框所示，弹出设置连接字符串对话框，我们首先要为数据库起一个别名，这个名字可以跟数据库名不一样，在后面我们会用到<span lang="EN-US"><o:p></o:p></span></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">
<p align="center"><img alt="" src="activerecord_0102.jpg" border="0" height="369" width="629">
</p><p>&nbsp;</p>
<o:p></o:p></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: red; line-height: 200%; font-family: 宋体;">注意：如果连接数据库为<span lang="EN-US">SQL Server2000</span>数据库，必须在弹出的对话框中选中允许保存密码选项，否则点击<span lang="EN-US">OK</span>按钮时会报登录失败的错误！这点不知道是不是我机器的设置问题，如果有朋友遇到这样的错误，不妨一试。</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">3</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．点击<span lang="EN-US">OK</span>后，选择<span lang="EN-US">ActiveRecord Components</span>面板<span lang="EN-US"><o:p></o:p></span></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">
<p align="center">
</p><p>&nbsp;</p>
<o:p></o:p></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>
<div src_cetemp="/images/cnblogs_com/terrylee/ActiveRecord_0103.JPG" align="center"><img alt="" src="activerecord_0103.jpg" border="0" height="370" width="630"></div>
&nbsp;</o:p></span>
</p><p>&nbsp;</p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">4</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．拖动<span lang="EN-US">ActiveRecord</span>到左边的空白区域，会出现如下界面，选择我们刚才设置的数据库别名<span lang="EN-US"><o:p></o:p></span></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">
<p align="center"><img alt="" src="activerecord_0104.jpg" border="0" height="366" width="501"></p>
<o:p></o:p></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">5</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．此后操作有选择子段，设置类名等，全部完成后界面如下：<span lang="EN-US"><o:p></o:p></span></span></p>
<p align="center"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p><img alt="" src="activerecord_0105.jpg" border="0" height="369" width="629">&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">6</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．选择<span lang="EN-US">Project</span>菜单下的<span lang="EN-US">Generate Code</span>，输入命名空间，文件设置路径，并选择所要生成代码语言<span lang="EN-US"><o:p></o:p></span></span></p>
<span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">
<p align="center"><img alt="" src="activerecord_0106.jpg" border="0" height="369" width="627"></p>
<o:p></o:p></span>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; color: red; line-height: 200%; font-family: 宋体;">注意：有一个选项是否覆盖已经存在的文件，可以根据自己的实际情况选择<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">7</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">．最后生成的完整实体类代码如下</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;"></span></p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img src="none.gif" align="top"><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;Generated&nbsp;by&nbsp;ActiveRecord&nbsp;Generator<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 128, 0);">//<br><img src="none.gif" align="top"></span><span style="color: rgb(0, 0, 255);">namespace</span><span style="color: rgb(0, 0, 0);">&nbsp;ARDemo<br><img id="Codehighlighter1_67_1962_Open_Image" onclick="this.style.display='none'; Codehighlighter1_67_1962_Open_Text.style.display='none'; Codehighlighter1_67_1962_Closed_Image.style.display='inline'; Codehighlighter1_67_1962_Closed_Text.style.display='inline';" src="expandedblockstart.gif" align="top"><img id="Codehighlighter1_67_1962_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_67_1962_Closed_Text.style.display='none'; Codehighlighter1_67_1962_Open_Image.style.display='inline'; Codehighlighter1_67_1962_Open_Text.style.display='inline';" src="contractedblock.gif" align="top"></span><span id="Codehighlighter1_67_1962_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_67_1962_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">using</span><span style="color: rgb(0, 0, 0);">&nbsp;Castle.ActiveRecord;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;[ActiveRecord(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Users</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;User&nbsp;:&nbsp;ActiveRecordBase<br><img id="Codehighlighter1_183_1960_Open_Image" onclick="this.style.display='none'; Codehighlighter1_183_1960_Open_Text.style.display='none'; Codehighlighter1_183_1960_Closed_Image.style.display='inline'; Codehighlighter1_183_1960_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_183_1960_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_183_1960_Closed_Text.style.display='none'; Codehighlighter1_183_1960_Open_Image.style.display='inline'; Codehighlighter1_183_1960_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_183_1960_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_183_1960_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;_logonID;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_logonName;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_password;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;_emailAddress;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;System.DateTime&nbsp;_lastLogon;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[PrimaryKey(PrimaryKeyType.Native)]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">&nbsp;LogonID<br><img id="Codehighlighter1_499_674_Open_Image" onclick="this.style.display='none'; Codehighlighter1_499_674_Open_Text.style.display='none'; Codehighlighter1_499_674_Closed_Image.style.display='inline'; Codehighlighter1_499_674_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_499_674_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_499_674_Closed_Text.style.display='none'; Codehighlighter1_499_674_Open_Image.style.display='inline'; Codehighlighter1_499_674_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_499_674_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_499_674_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_529_581_Open_Image" onclick="this.style.display='none'; Codehighlighter1_529_581_Open_Text.style.display='none'; Codehighlighter1_529_581_Closed_Image.style.display='inline'; Codehighlighter1_529_581_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_529_581_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_529_581_Closed_Text.style.display='none'; Codehighlighter1_529_581_Open_Image.style.display='inline'; Codehighlighter1_529_581_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_529_581_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_529_581_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._logonID;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_611_664_Open_Image" onclick="this.style.display='none'; Codehighlighter1_611_664_Open_Text.style.display='none'; Codehighlighter1_611_664_Closed_Image.style.display='inline'; Codehighlighter1_611_664_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_611_664_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_611_664_Closed_Text.style.display='none'; Codehighlighter1_611_664_Open_Image.style.display='inline'; Codehighlighter1_611_664_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_611_664_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_611_664_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._logonID&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property()]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;LogonName<br><img id="Codehighlighter1_746_925_Open_Image" onclick="this.style.display='none'; Codehighlighter1_746_925_Open_Text.style.display='none'; Codehighlighter1_746_925_Closed_Image.style.display='inline'; Codehighlighter1_746_925_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_746_925_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_746_925_Closed_Text.style.display='none'; Codehighlighter1_746_925_Open_Image.style.display='inline'; Codehighlighter1_746_925_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_746_925_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_746_925_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_776_830_Open_Image" onclick="this.style.display='none'; Codehighlighter1_776_830_Open_Text.style.display='none'; Codehighlighter1_776_830_Closed_Image.style.display='inline'; Codehighlighter1_776_830_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_776_830_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_776_830_Closed_Text.style.display='none'; Codehighlighter1_776_830_Open_Image.style.display='inline'; Codehighlighter1_776_830_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_776_830_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_776_830_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._logonName;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_860_915_Open_Image" onclick="this.style.display='none'; Codehighlighter1_860_915_Open_Text.style.display='none'; Codehighlighter1_860_915_Closed_Image.style.display='inline'; Codehighlighter1_860_915_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_860_915_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_860_915_Closed_Text.style.display='none'; Codehighlighter1_860_915_Open_Image.style.display='inline'; Codehighlighter1_860_915_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_860_915_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_860_915_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._logonName&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property()]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;Password<br><img id="Codehighlighter1_996_1173_Open_Image" onclick="this.style.display='none'; Codehighlighter1_996_1173_Open_Text.style.display='none'; Codehighlighter1_996_1173_Closed_Image.style.display='inline'; Codehighlighter1_996_1173_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_996_1173_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_996_1173_Closed_Text.style.display='none'; Codehighlighter1_996_1173_Open_Image.style.display='inline'; Codehighlighter1_996_1173_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_996_1173_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_996_1173_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1026_1079_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1026_1079_Open_Text.style.display='none'; Codehighlighter1_1026_1079_Closed_Image.style.display='inline'; Codehighlighter1_1026_1079_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1026_1079_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1026_1079_Closed_Text.style.display='none'; Codehighlighter1_1026_1079_Open_Image.style.display='inline'; Codehighlighter1_1026_1079_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1026_1079_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1026_1079_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._password;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1109_1163_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1109_1163_Open_Text.style.display='none'; Codehighlighter1_1109_1163_Closed_Image.style.display='inline'; Codehighlighter1_1109_1163_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1109_1163_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1109_1163_Closed_Text.style.display='none'; Codehighlighter1_1109_1163_Open_Image.style.display='inline'; Codehighlighter1_1109_1163_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1109_1163_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1109_1163_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._password&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property()]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">string</span><span style="color: rgb(0, 0, 0);">&nbsp;EmailAddress<br><img id="Codehighlighter1_1248_1433_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1248_1433_Open_Text.style.display='none'; Codehighlighter1_1248_1433_Closed_Image.style.display='inline'; Codehighlighter1_1248_1433_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1248_1433_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1248_1433_Closed_Text.style.display='none'; Codehighlighter1_1248_1433_Open_Image.style.display='inline'; Codehighlighter1_1248_1433_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1248_1433_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1248_1433_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1278_1335_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1278_1335_Open_Text.style.display='none'; Codehighlighter1_1278_1335_Closed_Image.style.display='inline'; Codehighlighter1_1278_1335_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1278_1335_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1278_1335_Closed_Text.style.display='none'; Codehighlighter1_1278_1335_Open_Image.style.display='inline'; Codehighlighter1_1278_1335_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1278_1335_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1278_1335_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._emailAddress;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1365_1423_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1365_1423_Open_Text.style.display='none'; Codehighlighter1_1365_1423_Closed_Image.style.display='inline'; Codehighlighter1_1365_1423_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1365_1423_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1365_1423_Closed_Text.style.display='none'; Codehighlighter1_1365_1423_Open_Image.style.display='inline'; Codehighlighter1_1365_1423_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1365_1423_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1365_1423_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._emailAddress&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Property()]<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;System.DateTime&nbsp;LastLogon<br><img id="Codehighlighter1_1514_1693_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1514_1693_Open_Text.style.display='none'; Codehighlighter1_1514_1693_Closed_Image.style.display='inline'; Codehighlighter1_1514_1693_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1514_1693_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1514_1693_Closed_Text.style.display='none'; Codehighlighter1_1514_1693_Open_Image.style.display='inline'; Codehighlighter1_1514_1693_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1514_1693_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1514_1693_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">get</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1544_1598_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1544_1598_Open_Text.style.display='none'; Codehighlighter1_1544_1598_Closed_Image.style.display='inline'; Codehighlighter1_1544_1598_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1544_1598_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1544_1598_Closed_Text.style.display='none'; Codehighlighter1_1544_1598_Open_Image.style.display='inline'; Codehighlighter1_1544_1598_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1544_1598_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1544_1598_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._lastLogon;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);"><br><img id="Codehighlighter1_1628_1683_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1628_1683_Open_Text.style.display='none'; Codehighlighter1_1628_1683_Closed_Image.style.display='inline'; Codehighlighter1_1628_1683_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1628_1683_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1628_1683_Closed_Text.style.display='none'; Codehighlighter1_1628_1683_Open_Image.style.display='inline'; Codehighlighter1_1628_1683_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1628_1683_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1628_1683_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">._lastLogon&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;value;<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;DeleteAll()<br><img id="Codehighlighter1_1751_1815_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1751_1815_Open_Text.style.display='none'; Codehighlighter1_1751_1815_Closed_Image.style.display='inline'; Codehighlighter1_1751_1815_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1751_1815_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1751_1815_Closed_Text.style.display='none'; Codehighlighter1_1751_1815_Open_Image.style.display='inline'; Codehighlighter1_1751_1815_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1751_1815_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1751_1815_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ActiveRecordBase.DeleteAll(</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User));<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;User[]&nbsp;FindAll()<br><img id="Codehighlighter1_1873_1954_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1873_1954_Open_Text.style.display='none'; Codehighlighter1_1873_1954_Closed_Image.style.display='inline'; Codehighlighter1_1873_1954_Closed_Text.style.display='inline';" src="expandedsubblockstart.gif" align="top"><img id="Codehighlighter1_1873_1954_Closed_Image" style="display: none;" onclick="this.style.display='none'; Codehighlighter1_1873_1954_Closed_Text.style.display='none'; Codehighlighter1_1873_1954_Open_Image.style.display='inline'; Codehighlighter1_1873_1954_Open_Text.style.display='inline';" src="contractedsubblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span id="Codehighlighter1_1873_1954_Closed_Text" style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);"><img src="dot.gif"></span><span id="Codehighlighter1_1873_1954_Open_Text"><span style="color: rgb(0, 0, 0);">{<br><img src="inblock.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;((User[])(ActiveRecordBase.FindAll(</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">(User))));<br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedsubblockend.gif" align="top">&nbsp;&nbsp;&nbsp;&nbsp;}</span></span><span style="color: rgb(0, 0, 0);"><br><img src="expandedblockend.gif" align="top">}</span></span></div>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%; text-align: left;" align="left"><br>大家还应该注意的一点是生成<span lang="EN-US">One-Many/Many-One</span>等关系的实体类文件时可能会出现一些问题，需要对生成的代码手工改动。最后希望和研究<span lang="EN-US">Castle</span>的朋友能够多多交流！<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><b style=""><span style="font-size: 10pt; color: rgb(0, 102, 153); line-height: 200%; font-family: 宋体;">参考资料<span lang="EN-US"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; line-height: 200%;"><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;" lang="EN-US">Castle</span><span style="font-size: 10pt; line-height: 200%; font-family: 宋体;">的官方网站<span lang="EN-US"><a href="http://www.castleproject.org/">http://www.castleproject.org</a></span></span></p>
<div id="MySignature">作者：<a href="http://terrylee.cnblogs.com/">TerryLee</a><br>
出处：<a href="http://terrylee.cnblogs.com/">http://terrylee.cnblogs.com</a>
<br>
本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。
</div>
<div id="digg_block">
<div id="div_digg">										
	<div class="diggit" onclick="DiggIt(365762,14203,1)"> 
		<span class="diggnum" id="digg_count_365762">2</span>
	</div>
	<div class="buryit" onclick="DiggIt(365762,14203,2)"> 
		<span class="burynum" id="bury_count_365762">0</span>
	</div>
	<div class="clear"></div>
	<span style="display: none;" id="span_isdigged_365762">0</span>	
	<div class="diggword" id="digg_word_365762">(请您对文章做出评价)</div>	
</div>
</div>
<div class="clear"></div>
<div id="post_next_prev">
<a href="http://www.cnblogs.com/Terrylee/archive/2006/03/29/361767.html">« </a> 上一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/03/29/361767.html" title="发布于2006-03-29 14:35">.NET设计模式（13）：享元模式（Flyweight Pattern）</a><br>
<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html">» </a> 下一篇：<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/05/367381.html" title="发布于2006-04-05 12:38">Castle ActiveRecord学习实践（2）：构建配置信息</a><br>
</div>








		</div>
		<div class="postDesc">posted @ 2006-04-03 16:59 <a href="http://www.cnblogs.com/Terrylee/">TerryLee</a> 阅读(44506) <a href="#commentform">评论(166)</a> &nbsp;<a href="http://www.cnblogs.com/Terrylee/admin/EditPosts.aspx?postid=365762">编辑</a> <a href="http://www.cnblogs.com/Terrylee/AddToFavorite.aspx?id=365762">收藏</a> <a href="#" onclick="PutInWz();return false;">网摘</a>  所属分类: <a href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界</a></div>
	</div>
	<img src="365762.html" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html"
dc:identifier="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/Terrylee/services/trackbacks/365762.aspx" />
</rdf:RDF>
-->

</div><!--end: topics 文章、评论容器-->
<a name="pagedcomment"></a>
<!--done-->
<br>
<div class="feedback_area_title">发表评论</div>
<div class="feedbackNoItems"><span id="span_comment_maxid" style="display: none;">1708420</span></div>
	
<div id="Comments1_BottomPager"><div class="comment_pager">
	评论共2页:&nbsp;<a href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html?page=1#pagedcomment">上一页</a>&nbsp;<a href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html?page=1#pagedcomment">1</a>&nbsp;<span class="comment_pager_current">2</span>&nbsp;
</div></div>
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",471719,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(471719,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl00_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#471719">#66楼</a><a name="471719" id="comment_anchor_471719"></a>[<span class="louzhu">楼主</span>]2006-08-09 08:15 | <a id="Comments1_CommentList_ctl00_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_471719" class="blog_comment_body">@jailu
<br>2.0版本在第11篇有一个简单的示例，可以参考一下！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",476139,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(476139,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=microshot" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl01_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#476139">#67楼</a><a name="476139" id="comment_anchor_476139"></a>2006-08-14 10:30 | <a id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/microshot/" target="_top">microshot</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/microshot" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_476139" class="blog_comment_body">请问ar怎么连接不上oracle自动生成配置文件啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",476365,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(476365,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl02_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#476365">#68楼</a><a name="476365" id="comment_anchor_476365"></a>[<span class="louzhu">楼主</span>]2006-08-14 13:46 | <a id="Comments1_CommentList_ctl02_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_476365" class="blog_comment_body">@microshot
<br>AR连接Oracle数据库没有作过试验</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",476545,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(476545,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=microshot" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl03_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#476545">#69楼</a><a name="476545" id="comment_anchor_476545"></a>2006-08-14 16:13 | <a id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/microshot/" target="_top">microshot</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/microshot" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_476545" class="blog_comment_body">唉，摆弄了一上午也没搞好，ODBC也不支持，没办法了，先弄到mssql里面了:(</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("microshot",478355,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(478355,"uIbqCwxjF7mIw1Kdc9dGagjTiH74SZG8hjl3DZzAB4Fygmpf9ntwlQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=microshot" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl04_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#478355">#70楼</a><a name="478355" id="comment_anchor_478355"></a>2006-08-16 13:05 | <a id="Comments1_CommentList_ctl04_NameLink" href="http://www.cnblogs.com/microshot/" target="_top">microshot</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/microshot" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_478355" class="blog_comment_body">@TerryLee
<br>oracle的主键属性配置为PrimaryKeyType.Sequence时出错提示：
<br>序列（号）不存在
<br>改为PrimaryKeyType.Assigned才可以，这是什么原因？bug吗
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("ppxiaofei",479531,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(479531,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl05_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#479531">#71楼</a><a name="479531" id="comment_anchor_479531"></a>2006-08-17 15:37 | <a id="Comments1_CommentList_ctl05_NameLink" target="_blank">ppxiaofei[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_479531" class="blog_comment_body">TerryLee，你好
<br>刚刚开始接触AR，有个问题不知道怎么解决
<br>我建立了一个类Student，希望与两个表建立对应关系。两个表结构一样，但是分布在不同的服务器上，根据当前用户的session信息决定从哪个表里读数据，可是我不知道应该怎样建立这种对应关系。谢谢！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("zyq22",493230,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(493230,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl06_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#493230">#72楼</a><a name="493230" id="comment_anchor_493230"></a>2006-09-02 19:38 | <a id="Comments1_CommentList_ctl06_NameLink" target="_blank">zyq22[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_493230" class="blog_comment_body">请问NBear, Castle ActiveRecord和Ibatisnet这些概念是什么，我怎么一头雾水，是不是类似于java中的Hibernate,谢谢!!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",494052,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(494052,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl07_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#494052">#73楼</a><a name="494052" id="comment_anchor_494052"></a>[<span class="louzhu">楼主</span>]2006-09-04 08:17 | <a id="Comments1_CommentList_ctl07_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_494052" class="blog_comment_body">@zyq22
<br>NBear不仅仅是一个ORM的框架，还包括很多Web开发，对Ajax的支持等，参考<a target="_new" href="http://teddyma.cnblogs.com/articles/Ilungasoft_Framework.html">http://teddyma.cnblogs.com/articles/Ilungasoft_Framework.html</a>
<br>Castle ActiveRecord、Ibatisnet可以简单理解为类似于Java中的Hibernate一样的ORM框架</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("hope[匿名]",496381,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(496381,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl08_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#496381">#74楼</a><a name="496381" id="comment_anchor_496381"></a>2006-09-06 14:45 | <a id="Comments1_CommentList_ctl08_NameLink" target="_blank">hope[匿名][未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_496381" class="blog_comment_body">我为Castle建了个群 大家都加入吧 讨论讨论
<br>群号码：275885</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("hongyanlai",497516,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(497516,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl09_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#497516">#75楼</a><a name="497516" id="comment_anchor_497516"></a>2006-09-07 14:42 | <a id="Comments1_CommentList_ctl09_NameLink" target="_blank">hongyanlai[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_497516" class="blog_comment_body">看了，Castle很详细，请问一下为什么，主键是nvarchar类型是，保存数据，和更新主键都是错误的呢？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",497775,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(497775,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl10_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#497775">#76楼</a><a name="497775" id="comment_anchor_497775"></a>[<span class="louzhu">楼主</span>]2006-09-07 17:23 | <a id="Comments1_CommentList_ctl10_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_497775" class="blog_comment_body">@hongyanlai
<br>设一下主键的类型，参考后面的第三篇文章</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("hongyanlai",498466,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(498466,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl11_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#498466">#77楼</a><a name="498466" id="comment_anchor_498466"></a>2006-09-08 10:51 | <a id="Comments1_CommentList_ctl11_NameLink" target="_blank">hongyanlai[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_498466" class="blog_comment_body">@TerryLee
<br>我主键已经设置了Assigned，可还是不行，错误信息如下：myDaVinci.Dal.Test.SiteSettingTest.SaveSiteSetting : Castle.ActiveRecord.Framework.ActiveRecordException : Could not perform Save for SiteSetting
<br>  ----&gt; NHibernate.HibernateException : SQL insert, update or delete failed (expected affected row count: 1, actual affected row count: 0). Possible causes: the row was modified or deleted by another user, or a trigger is reporting misleading row count.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",498962,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(498962,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl12_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#498962">#78楼</a><a name="498962" id="comment_anchor_498962"></a>[<span class="louzhu">楼主</span>]2006-09-08 16:49 | <a id="Comments1_CommentList_ctl12_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_498962" class="blog_comment_body">@hongyanlai
<br>把你的代码贴出来看一下吧，这样看不出来</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("lizheng",509714,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(509714,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl13$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl13_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#509714">#79楼</a><a name="509714" id="comment_anchor_509714"></a>2006-09-20 15:49 | <a id="Comments1_CommentList_ctl13_NameLink" target="_blank">lizheng[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_509714" class="blog_comment_body">TerryLee，我想请教一下，我没用过Hibernate
<br>是不是在学习Castle之前要先学习hibernate才行？
<br>还有，那个ActiveRecordGenerate 在哪里下载？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",509818,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(509818,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl14$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl14_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#509818">#80楼</a><a name="509818" id="comment_anchor_509818"></a>[<span class="louzhu">楼主</span>]2006-09-20 16:51 | <a id="Comments1_CommentList_ctl14_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_509818" class="blog_comment_body">@lizheng
<br>你说的应该是NHibernate，而不是Hibernate。不需要，但是如果对NHibernate熟悉一些，掌握起来会更快
<br>
<br>ActiveRecordGenerator在下载后的源码中就有</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("lizheng",517427,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(517427,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl15$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl15_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#517427">#81楼</a><a name="517427" id="comment_anchor_517427"></a>2006-09-28 17:05 | <a id="Comments1_CommentList_ctl15_NameLink" target="_blank">lizheng[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_517427" class="blog_comment_body">谢谢，我经过这几天的研究，也逐渐的了解了一些
<br>但是还是有很多疑问。。。
<br>不知道你方不方便告诉我你的邮箱，我想把问题整理一下（不会太多的，不会耽误你太长时间），希望你能简单的帮我解答一下，也希望能跟高手多交流一下
<br>如果是qq或msn都可以
<br>当然，如果不方便也没关系。。呵呵
<br><span><a href="mailto:%E6%88%91%E7%9A%84%E9%82%AE%E7%AE%B1%EF%BC%9Alizheng@51testing.com" class="smarterwiki-linkify">我的邮箱：lizheng@51testing.com</a>
</span><br>qq：66238953
<br><span><a href="mailto:msn:lizheng__114@hotmail.com" class="smarterwiki-linkify">msn:lizheng__114@hotmail.com</a></span></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("codelover",518441,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(518441,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl16$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl16_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#518441">#82楼</a><a name="518441" id="comment_anchor_518441"></a>2006-09-29 17:08 | <a id="Comments1_CommentList_ctl16_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://www.codelover.com" target="_top">codelover[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_518441" class="blog_comment_body">.net开源框架qq群30017484，讨论Castle ActiveRecord、Nhibernate、ibatisnet、IOC容器Spring.Net和Castle等框架</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",522227,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(522227,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl17$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl17_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#522227">#83楼</a><a name="522227" id="comment_anchor_522227"></a>[<span class="louzhu">楼主</span>]2006-10-06 17:25 | <a id="Comments1_CommentList_ctl17_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_522227" class="blog_comment_body">@lizheng
<br>晕死了，我的邮箱在Blog右边有啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("wang",536528,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(536528,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl18$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl18_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#536528">#84楼</a><a name="536528" id="comment_anchor_536528"></a>2006-10-22 17:21 | <a id="Comments1_CommentList_ctl18_NameLink" target="_blank">wang[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_536528" class="blog_comment_body">好文章啊,上面 "2．查询所有的User对象 FindAll()方法"
<br>中的这几句代码什么意思啊
<br>
<br>Assert.IsNotNull(list);
<br>
<br>int actual = list.Count;
<br>int expected = 2;
<br>
<br>Assert.AreEqual(expected,actual);
<br>谢谢</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",536551,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(536551,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl19$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl19_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#536551">#85楼</a><a name="536551" id="comment_anchor_536551"></a>[<span class="louzhu">楼主</span>]2006-10-22 17:52 | <a id="Comments1_CommentList_ctl19_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_536551" class="blog_comment_body">@wang
<br>使用NUnit做单元测试</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("plowman",559497,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(559497,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl20$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl20_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#559497">#86楼</a><a name="559497" id="comment_anchor_559497"></a>2006-11-13 17:55 | <a id="Comments1_CommentList_ctl20_NameLink" target="_blank">plowman[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_559497" class="blog_comment_body">简单的才是最好的,Castle这些东西 学习还可以,用的话就别了.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",559508,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(559508,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl21$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl21_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#559508">#87楼</a><a name="559508" id="comment_anchor_559508"></a>[<span class="louzhu">楼主</span>]2006-11-13 18:04 | <a id="Comments1_CommentList_ctl21_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_559508" class="blog_comment_body">@plowman
<br>建议你先去了解一下再来发言！
<br>
<br>Castle中的AR，IOC都是很优秀的，我现在在小项目中也有应用</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("lovebanyi",577253,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(577253,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl22$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl22_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#577253">#88楼</a><a name="577253" id="comment_anchor_577253"></a>2006-11-30 09:07 | <a id="Comments1_CommentList_ctl22_NameLink" target="_blank">lovebanyi[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_577253" class="blog_comment_body">想知道分页如何做.  如果用findAll不太好吧</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("简凡",580907,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(580907,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl23$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl23_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#580907">#89楼</a><a name="580907" id="comment_anchor_580907"></a>2006-12-03 23:19 | <a id="Comments1_CommentList_ctl23_NameLink" target="_blank">简凡[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_580907" class="blog_comment_body">请问,我把主键ID设为Assigned在使Save();时如何将ID负值为GUID.newGUID().TOstring();</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",580925,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(580925,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl24$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl24_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#580925">#90楼</a><a name="580925" id="comment_anchor_580925"></a>[<span class="louzhu">楼主</span>]2006-12-03 23:42 | <a id="Comments1_CommentList_ctl24_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_580925" class="blog_comment_body">@简凡
<br>Assigned是让应用程序在自己为对象分配一个标示符，在使用时直接指定ID
<br>
<br>// 既然是GUID，为什么不把主键类型设置为GUID，而要设置成Assigned呢？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",591092,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(591092,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl25$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl25_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#591092">#91楼</a><a name="591092" id="comment_anchor_591092"></a>2006-12-13 16:04 | <a id="Comments1_CommentList_ctl25_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_591092" class="blog_comment_body">照着楼主的指点做了，web可以过，改成WinForm，就不行了
<br>
<br>建了一个Castle ActiveRecord Project，然后另做了一个“windows 应用程序”project里测试它，在测试项目里引用了
<br>Castle,ActiveRecord
<br>Castle.Core
<br>NHibernate
<br>
<br>然后写了以下代码：
<br>private void Form1_Load(object sender, EventArgs e)
<br>{
<br>Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource source = new Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource();
<br>
<br>System.Collections.Hashtable properties = new System.Collections.Hashtable();
<br>
<br>properties.Add("hibernate.connection.driver_class", "NHibernate.Driver.SqlClientDriver");
<br>properties.Add("hibernate.dialect", "NHibernate.Dialect.MsSql2000Dialect");
<br>properties.Add("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider");
<br>properties.Add("hibernate.connection.connection_string", "UID=sa;Password=qqq;Initial Catalog=dh6;Data Source=.");
<br>
<br>source.Add(typeof(Castle.ActiveRecord.ActiveRecordBase), properties);
<br>Castle.ActiveRecord.ActiveRecordStarter.Initialize(source, typeof(yifei.User));
<br>
<br>mynamespace.User[] user = mynamespace.User.FindAll(); //这一行报could no perform FindAll for User
<br>}
<br>
<br>可能是哪里错了？感激涕零！
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",591100,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(591100,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl26$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl26_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#591100">#92楼</a><a name="591100" id="comment_anchor_591100"></a>2006-12-13 16:08 | <a id="Comments1_CommentList_ctl26_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_591100" class="blog_comment_body">另外请问李兄弟，WinForm程序能不能也象Web那样把数据库配置写在web.config那样写在某个配置文件里呢？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",591126,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(591126,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl27_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl27$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl27_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#591126">#93楼</a><a name="591126" id="comment_anchor_591126"></a>2006-12-13 16:23 | <a id="Comments1_CommentList_ctl27_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_591126" class="blog_comment_body">在第2讲里找到从xml里加载配置信息的方法了，感激涕零！
<br>不过上上个问题还是没解决，痛哭流涕</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",591134,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(591134,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl28_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl28$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl28_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#591134">#94楼</a><a name="591134" id="comment_anchor_591134"></a>2006-12-13 16:29 | <a id="Comments1_CommentList_ctl28_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_591134" class="blog_comment_body">另外我如果吧
<br>Initialize(source, typeof(mynamespace.User)); 
<br>改成
<br>Initialize(source, typeof(ActiveRecord)); 
<br>错误信息就会提示为：
<br>You have accessed an ActiveRecord class that wasn't properly initialized. The only explanation is that the call to ActiveRecordStarter.Initialize() didn't include mynamespace.User class
<br>
<br>啥意思捏</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",591388,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(591388,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl29_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl29$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl29_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#591388">#95楼</a><a name="591388" id="comment_anchor_591388"></a>[<span class="louzhu">楼主</span>]2006-12-13 20:13 | <a id="Comments1_CommentList_ctl29_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_591388" class="blog_comment_body">@qcrsoft
<br>使用App.config配置文件
<br>
<br>直接用Initialize(source, typeof(User)); 试试</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("ycl",592351,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(592351,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl30_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl30$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl30_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#592351">#96楼</a><a name="592351" id="comment_anchor_592351"></a>2006-12-14 17:15 | <a id="Comments1_CommentList_ctl30_NameLink" target="_blank">ycl[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_592351" class="blog_comment_body">使用特性是不是和EJB3.0的思想。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",592704,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(592704,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl31_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl31$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl31_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#592704">#97楼</a><a name="592704" id="comment_anchor_592704"></a>[<span class="louzhu">楼主</span>]2006-12-14 23:55 | <a id="Comments1_CommentList_ctl31_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_592704" class="blog_comment_body">@ycl
<br>对EJB我不了解啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Jove",593491,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(593491,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl32_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl32$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl32_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#593491">#98楼</a><a name="593491" id="comment_anchor_593491"></a>2006-12-15 16:43 | <a id="Comments1_CommentList_ctl32_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://blog.csdn.net/runandrun" target="_top">Jove[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_593491" class="blog_comment_body">TerryLee 兄：
<br>　
<br>在目录C:\Program Files\Castle\Bin\net-1.1\下没找到文件Castle.ActiveRecord.Generator.exe，我重新安装了一次，还是没有，我是从官方网站下载的castleproject-1.0-rc2.msi安装的，大小11.7MB。
<br>
<br>不知道咋回事儿。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Jove",593494,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(593494,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl33_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl33$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl33_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#593494">#99楼</a><a name="593494" id="comment_anchor_593494"></a>2006-12-15 16:46 | <a id="Comments1_CommentList_ctl33_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://blog.csdn.net/runandrun" target="_top">Jove[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_593494" class="blog_comment_body">对了，我安装好后，是目录：C:\Program Files\CastleProject\Bin\net-1.1\而不是C:\Program Files\Castle\Bin\net-1.1\
<br>
<br>可能是版本的问题吧</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",593764,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(593764,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl34_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl34$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl34_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#593764">#100楼</a><a name="593764" id="comment_anchor_593764"></a>[<span class="louzhu">楼主</span>]2006-12-15 21:08 | <a id="Comments1_CommentList_ctl34_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_593764" class="blog_comment_body">@Jove
<br>在最新的RC 版本中没有这个生成器</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",595060,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(595060,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl35_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl35$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl35_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#595060">#101楼</a><a name="595060" id="comment_anchor_595060"></a>2006-12-17 22:15 | <a id="Comments1_CommentList_ctl35_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_595060" class="blog_comment_body">我也遇到了Jove 的问题也找不到Castle.ActiveRecord.Generator.exe，不过我存在1.0和2.0两个目录，应该是TerryLee说的问题。另外最新版的为什么不提供这个exe咛，那做库表的xml映射手写累翘翘啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",596285,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(596285,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl36_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl36$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl36_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#596285">#102楼</a><a name="596285" id="comment_anchor_596285"></a>[<span class="louzhu">楼主</span>]2006-12-18 23:44 | <a id="Comments1_CommentList_ctl36_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_596285" class="blog_comment_body">@qcrsoft
<br>有人正在开发一个AR的生成实体类的VS.NET插件，且已经成型，估计将来官方推荐的应该是它，有空我介绍一下这个东东:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",597508,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(597508,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl37_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl37$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl37_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#597508">#103楼</a><a name="597508" id="comment_anchor_597508"></a>[<span class="louzhu">楼主</span>]2006-12-20 09:09 | <a id="Comments1_CommentList_ctl37_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_597508" class="blog_comment_body">@Jove
<br>链接路径太长，影响了版面，我先删除了……</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Jove",598143,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(598143,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl38_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl38$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl38_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#598143">#104楼</a><a name="598143" id="comment_anchor_598143"></a>2006-12-20 15:09 | <a id="Comments1_CommentList_ctl38_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://blog.csdn.net/runandrun" target="_top">Jove[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_598143" class="blog_comment_body">@TerryLee 
<br>
<br>呵呵，确实太长，没关系。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",600689,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(600689,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl39_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl39$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl39_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#600689">#105楼</a><a name="600689" id="comment_anchor_600689"></a>2006-12-22 18:11 | <a id="Comments1_CommentList_ctl39_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_600689" class="blog_comment_body">楼主，你说的那个生成那个生成实体类的工具往上有没有预览版什么的可下啊，叫啥名字</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",601026,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601026,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl40_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl40$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl40_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601026">#106楼</a><a name="601026" id="comment_anchor_601026"></a>2006-12-23 00:57 | <a id="Comments1_CommentList_ctl40_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601026" class="blog_comment_body">ActiveRecord调试几个总结
<br>1、连接SQL SERVER 2005墨有问题，连接串和楼主写的例子中连接SQL SERVER2000一样
<br>
<br>2、库里有个user表，写了个对应的User类，运行总提示“User附近有语法错误”，折腾了两个多小时，总算找到原因，敢情是NHibernate内部想必没对user做处理，对这样关键字应该加[user]的，没试其他关键字如order行不行，八成是不行，所以大家用activeRecord和NHibernate只行放弃user这样的表名。不爽。
<br>
<br>3、我是在代码（asp.net）中用下面两行做ActiveRecord初试划的
<br>IConfigurationSource source = System.Configuration.ConfigurationSettings.GetConfig("activerecord") as IConfigurationSource;
<br>ActiveRecordStarter.Initialize( source, typeof(User) );
<br>
<br>第一下可以运行成功，一刷新就提示“You can't invoke ActiveRecordStarter.Initialize more than once”，一时不明白more than once是什么意思，后来一查，敢情这三单词凑在一起是个词组，“不止一次”的意思，豁然开朗，看来这两行的放在application_onstar里去</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",601456,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601456,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl41_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl41$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl41_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601456">#107楼</a><a name="601456" id="comment_anchor_601456"></a>[<span class="louzhu">楼主</span>]2006-12-23 16:14 | <a id="Comments1_CommentList_ctl41_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601456" class="blog_comment_body">@Jove
<br>:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",601459,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601459,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl42_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl42$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl42_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601459">#108楼</a><a name="601459" id="comment_anchor_601459"></a>[<span class="louzhu">楼主</span>]2006-12-23 16:16 | <a id="Comments1_CommentList_ctl42_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601459" class="blog_comment_body">@qcrsoft
<br>名字没记住，我改天找一下，写篇文章介绍一下，请稍等:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",601465,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601465,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl43_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl43$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl43_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601465">#109楼</a><a name="601465" id="comment_anchor_601465"></a>[<span class="louzhu">楼主</span>]2006-12-23 16:19 | <a id="Comments1_CommentList_ctl43_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601465" class="blog_comment_body">@qcrsoft
<br>多谢补充
<br>
<br>2.在数据库中，一般是没人用user这个表名的，我想大多数人都会用Users
<br>
<br>3.放在ASP.NET中不是个明智的做法，所以还是得放在Application_Start里面</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",601506,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601506,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl44_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl44$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl44_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601506">#110楼</a><a name="601506" id="comment_anchor_601506"></a>2006-12-23 16:41 | <a id="Comments1_CommentList_ctl44_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601506" class="blog_comment_body">今天一天都在学习ActiveRecord，被几个绊子拖着进度很慢，上面总结了一点，现在再继续，希望对后来的兄弟有点用不要象我这么耗费时间:
<br>
<br>照着李楼主的
<br>public static void DeleteAll()
<br>{
<br>　　ActiveRecordBase.DeleteAll(typeof(User));
<br>}
<br>敲，ActiveRecordBase后面无论如何找不到DeleteAll这个方法，后来终于试出写成
<br>ActiveRecordBase&lt;User&gt;.DeleteAll();
<br>才可，看样是新版本的Castle支持泛型而做了修改（我下的版本是Castle站上标本标记为“Release Candidate 2 - November 1st, 2006”的包）。
<br>
<br>因此想到申明类时直接写为
<br>public class User : ActiveRecordBase&lt;User&gt;
<br>程序里牵扯到User类型的地方都可以简化，比如上面的改成
<br>ActiveRecordBase.DeleteAll();
<br>
<br>还有
<br>(User)FindByPrimaryKey(typeof(User), id);
<br>可以只需要写成
<br>FindByPrimaryKey(id);
<br>
<br>IList list = (IList)FindAllByProperty(typeof(User), "Username",　username);
<br>可以写成
<br>User[] user = FindAllByProperty("Username", username);
<br>
<br>清爽了许多，由此再次验证了泛型的无比优越性！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",601516,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601516,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl45_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl45$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl45_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601516">#111楼</a><a name="601516" id="comment_anchor_601516"></a>2006-12-23 16:48 | <a id="Comments1_CommentList_ctl45_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601516" class="blog_comment_body">（也算是题外话）
<br>我倒看过一篇数据库命名规范的建议，说到不要用s来起名，比如
<br>users
<br>memebers
<br>books
<br>等等都是不被建议的，而且在实践中我也感觉到这个建议是好的。关于数据库设计我有一点心得，有空是写篇帖子发你审审改改，好的话回复在你BLOG里，希望能对大家伙有点用。
<br>象你学习，为人民服务！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",601521,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601521,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl46_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl46$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl46_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601521">#112楼</a><a name="601521" id="comment_anchor_601521"></a>2006-12-23 16:53 | <a id="Comments1_CommentList_ctl46_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601521" class="blog_comment_body">饿读楼主的文章，一天没吃饭，我棵，要饿死了，下了下了，可算能看下一篇了，回头再来，祝楼主和读友们圣诞快乐</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",601554,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601554,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl47_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl47$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl47_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601554">#113楼</a><a name="601554" id="comment_anchor_601554"></a>[<span class="louzhu">楼主</span>]2006-12-23 17:49 | <a id="Comments1_CommentList_ctl47_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601554" class="blog_comment_body">@qcrsoft
<br>好啊，但是看微软提供的示例数据库都会用s，呵呵
<br>
<br>比如数据表名为Users，实体类也许就是User，期待你的文章:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",601555,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(601555,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl48_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl48$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl48_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#601555">#114楼</a><a name="601555" id="comment_anchor_601555"></a>[<span class="louzhu">楼主</span>]2006-12-23 17:50 | <a id="Comments1_CommentList_ctl48_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_601555" class="blog_comment_body">@qcrsoft
<br>感动啊：）
<br>
<br>也祝你圣诞快乐！
<br>
<br>//明天我还有个微软的培训，没想到今年的圣诞节这样过，唉……</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",603326,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(603326,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl49_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl49$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl49_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#603326">#115楼</a><a name="603326" id="comment_anchor_603326"></a>2006-12-25 18:08 | <a id="Comments1_CommentList_ctl49_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_603326" class="blog_comment_body">楼主啊，偶来向你请教：
<br>我想把ActiveRecord封装进我的数据访问层里，以一个DLL文件供WEB、WinForm等不同的项目访问，但是这样做的话如何做等同WEB下那个Application_Start里的初始化工作呢？
<br>想来想去不得解，劳驾您给点拨一下那！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",603427,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(603427,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl50_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl50$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl50_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#603427">#116楼</a><a name="603427" id="comment_anchor_603427"></a>[<span class="louzhu">楼主</span>]2006-12-25 21:19 | <a id="Comments1_CommentList_ctl50_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_603427" class="blog_comment_body">@qcrsoft
<br>如果是WinForm，需要在程序入口点进行初始化</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",603530,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(603530,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl51_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl51$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl51_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#603530">#117楼</a><a name="603530" id="comment_anchor_603530"></a>2006-12-25 23:43 | <a id="Comments1_CommentList_ctl51_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_603530" class="blog_comment_body">我这是个DLL可怎么办咛?
<br>这个类库实际上就上把你例子里的User类们封装了一下，我想Dll自己来完成activeRecord的初始化工作，而不是调用端去做完成</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("yf_zq",604082,"dB1rj+9AA4RCPl20Ly8Mavl3RdBZ2kBx3wVCvcv9+tYUa7jQuLvs6g==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(604082,"dB1rj+9AA4RCPl20Ly8Mavl3RdBZ2kBx3wVCvcv9+tYUa7jQuLvs6g==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=yf_zq" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl52_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl52$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl52_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#604082">#118楼</a><a name="604082" id="comment_anchor_604082"></a>2006-12-26 15:34 | <a id="Comments1_CommentList_ctl52_NameLink" href="http://www.cnblogs.com/yf-zq/" target="_top">yf_zq</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/yf_zq" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_604082" class="blog_comment_body">有一个问题想请教:<br>如何使用多数据库.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",604148,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(604148,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl53_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl53$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl53_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#604148">#119楼</a><a name="604148" id="comment_anchor_604148"></a>2006-12-26 17:28 | <a id="Comments1_CommentList_ctl53_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_604148" class="blog_comment_body">TO 楼上
<br><a target="_new" href="http://www.cnblogs.com/wj/archive/2005/07/10/189924.aspx">http://www.cnblogs.com/wj/archive/2005/07/10/189924.aspx</a>
<br>这里有一段是在xml配置多个数据库连接的，不知合不合你的用。我在收藏夹里有个BLOG个链接是专门说使用多个数据库的，可是混在一起找不到了，你凑合看一下上面这个</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",604233,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(604233,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl54_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl54$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl54_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#604233">#120楼</a><a name="604233" id="comment_anchor_604233"></a>2006-12-26 18:56 | <a id="Comments1_CommentList_ctl54_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_604233" class="blog_comment_body">楼主和读楼主文章的兄弟们给我指点一下啊：
<br>为了学习ActiveRecord，我准备做个小程序，供我跟我老婆通过Web、Pocket PC两种方式记每日消费的流水帐，我这么规划的：
<br>1、
<br>建个类库封装各个实体类（这个名词用的准确吗？），就是楼主文章里的User类等，这些类提供CRUD操作。这一层算不算数据访问层？
<br>2、
<br>再建一个类库封装N个类负责诸如口令验证（对上提供验证函数、通过1里面的类访问数据）、消费记录、汇总数据等。这一层算是业务逻辑层吧？
<br>3、
<br>Web项目，调用2里的类，这算是表现层是吧？
<br>4、
<br>建一个Web Services项目，对手机端提供Web服务，向下调用2里的类。（这一层算什么呢？）
<br>5、
<br>建Pocket Pc项目，跑在手机上，通过4访问系统。（这层算什么呢？也算表现层？）
<br>以上分的合不合理？层的叫法有没有问题？
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",605311,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(605311,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl55_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl55$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl55_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#605311">#121楼</a><a name="605311" id="comment_anchor_605311"></a>2006-12-27 19:00 | <a id="Comments1_CommentList_ctl55_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_605311" class="blog_comment_body">请教众家兄弟一个问题：
<br>例子中User这个类提供CRUD相关操作，那修改密码这个功能设计在什么地方比较合适？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",606219,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(606219,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl56_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl56$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl56_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#606219">#122楼</a><a name="606219" id="comment_anchor_606219"></a>2006-12-28 16:43 | <a id="Comments1_CommentList_ctl56_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_606219" class="blog_comment_body">TO yf_zq
<br>使用多数据库的那篇文章找到了,在
<br><a target="_new" href="http://www.agilelabs.cn/blogs/linkin/archive/2006/05.aspx">http://www.agilelabs.cn/blogs/linkin/archive/2006/05.aspx</a>
<br>第一篇就是</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("yf_zq",615276,"dB1rj+9AA4RCPl20Ly8Mavl3RdBZ2kBx3wVCvcv9+tYUa7jQuLvs6g==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(615276,"dB1rj+9AA4RCPl20Ly8Mavl3RdBZ2kBx3wVCvcv9+tYUa7jQuLvs6g==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=yf_zq" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl57_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl57$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl57_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#615276">#123楼</a><a name="615276" id="comment_anchor_615276"></a>2007-01-08 22:40 | <a id="Comments1_CommentList_ctl57_NameLink" href="http://www.cnblogs.com/yf-zq/" target="_top">yf_zq</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/yf_zq" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_615276" class="blog_comment_body">TO qcrsoft:<br>非常感谢您.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("qcrsoft",617791,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(617791,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl58_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl58$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl58_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#617791">#124楼</a><a name="617791" id="comment_anchor_617791"></a>2007-01-11 15:14 | <a id="Comments1_CommentList_ctl58_NameLink" target="_blank">qcrsoft[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_617791" class="blog_comment_body">紧密围绕在以terrylee为核心的TerryLee's Tech Space周围，努力学习互相帮助</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("cloud",646166,"9EsxpOv65yCHUDmSXE4LykYBqHHKIwkr7dE4p7zYYDs4Mlo31zl1fg==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(646166,"9EsxpOv65yCHUDmSXE4LykYBqHHKIwkr7dE4p7zYYDs4Mlo31zl1fg==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=cloud" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl59_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl59$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl59_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#646166">#125楼</a><a name="646166" id="comment_anchor_646166"></a>2007-02-09 16:16 | <a id="Comments1_CommentList_ctl59_NameLink" href="http://www.cnblogs.com/acloudy/" target="_top">cloud</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/cloud" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_646166" class="blog_comment_body">你好，请问我怎么找不到Castle.ActiveRecord.Generator.exe？
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("luckass",650665,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(650665,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl60_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl60$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl60_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#650665">#126楼</a><a name="650665" id="comment_anchor_650665"></a>2007-02-14 18:08 | <a id="Comments1_CommentList_ctl60_NameLink" target="_blank">luckass[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_650665" class="blog_comment_body">Castle.ActiveRecord.Generator.exe在哪里能找到</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("row",657081,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(657081,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl61_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl61$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl61_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#657081">#127楼</a><a name="657081" id="comment_anchor_657081"></a>2007-02-26 14:17 | <a id="Comments1_CommentList_ctl61_NameLink" target="_blank">row[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_657081" class="blog_comment_body">@qcrsoft
<br>
<br>你的問題我也很想知道
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("blindcat",666308,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(666308,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl62_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl62$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl62_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#666308">#128楼</a><a name="666308" id="comment_anchor_666308"></a>2007-03-07 09:29 | <a id="Comments1_CommentList_ctl62_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://www.worm168.com" target="_top">blindcat[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_666308" class="blog_comment_body">我也没找到Castle.ActiveRecord.Generator.exe
<br>bin/下只有Castle.MonoRail.Generator.exe
<br>谁有Castle.ActiveRecord.Generator.exe是不是能提供下载一下</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("blindcat",666446,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(666446,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl63_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl63$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl63_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#666446">#129楼</a><a name="666446" id="comment_anchor_666446"></a>2007-03-07 10:30 | <a id="Comments1_CommentList_ctl63_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://www.worm168.com" target="_top">blindcat[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_666446" class="blog_comment_body">Castle.ActiveRecord.Generator.exe,我想大家可以从源码里编译
<br>只不过我刚开始学.net,用的是Vs2005,出现一堆一堆的问题:(,很郁闷</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("blindcat",666797,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(666797,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl64_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl64$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl64_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#666797">#130楼</a><a name="666797" id="comment_anchor_666797"></a>2007-03-07 14:27 | <a id="Comments1_CommentList_ctl64_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://www.worm168.com" target="_top">blindcat[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_666797" class="blog_comment_body">Net1.1版本的Castle.ActiveRecord.Generator.exe供大家下载
<br><a target="_new" href="http://www.worm168.com/down/Castle-bin-net-1">http://www.worm168.com/down/Castle-bin-net-1</a>[1].1.zip</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("mingxingw",693969,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(693969,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl65_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl65$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl65_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#693969">#131楼</a><a name="693969" id="comment_anchor_693969"></a>2007-03-30 14:05 | <a id="Comments1_CommentList_ctl65_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://mingxing_84@163.com" target="_top">mingxingw[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_693969" class="blog_comment_body">@LeonMorris
<br>这个问题应该怎么解决呢!请赐教!!!!!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("good",707528,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(707528,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl66_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl66$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl66_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#707528">#132楼</a><a name="707528" id="comment_anchor_707528"></a>2007-04-10 18:28 | <a id="Comments1_CommentList_ctl66_NameLink" target="_blank">good[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_707528" class="blog_comment_body">请加入QQ群12923729，开源的世界讨论！</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("一凡",715292,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(715292,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl67_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl67$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl67_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#715292">#133楼</a><a name="715292" id="comment_anchor_715292"></a>2007-04-16 14:33 | <a id="Comments1_CommentList_ctl67_NameLink" target="_blank">一凡[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_715292" class="blog_comment_body">这个哪里有下载呀</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Kevin Wu",723801,"KI0mtvrUfdTjuMuU52FKxWf46IzZR6wCQcOPHDOSjxA9jldR1xjlug==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(723801,"KI0mtvrUfdTjuMuU52FKxWf46IzZR6wCQcOPHDOSjxA9jldR1xjlug==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Kevin+Wu" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl68_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl68$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl68_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#723801">#134楼</a><a name="723801" id="comment_anchor_723801"></a>2007-04-23 13:58 | <a id="Comments1_CommentList_ctl68_NameLink" href="http://www.cnblogs.com/kevin-wu/" target="_top">Kevin Wu</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/Kevin+Wu" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_723801" class="blog_comment_body">我下载的是1.0 Release Candidate 2 - November 1st, 2006
<br>版本,里面的ActiveRecord是RC1,但是在里面没有找到Castle.ActiveRecord.Generator.exe这个文件,为什么呢?</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("Payne",751115,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(751115,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl69_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl69$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl69_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#751115">#135楼</a><a name="751115" id="comment_anchor_751115"></a>2007-05-18 09:59 | <a id="Comments1_CommentList_ctl69_NameLink" target="_blank">Payne[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_751115" class="blog_comment_body">@kiler
<br>
<br>同意！
<br>其实最主要的还是性能的考虑。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("handianyixin",770320,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(770320,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl70_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl70$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl70_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#770320">#136楼</a><a name="770320" id="comment_anchor_770320"></a>2007-06-04 10:54 | <a id="Comments1_CommentList_ctl70_NameLink" target="_blank">handianyixin[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_770320" class="blog_comment_body">我创建的是控制台应用程序,在Main函数中初始化,
<br> static void Main(string[] args)
<br>        {            
<br>            IConfigurationSource source = ConfigurationManager.GetSection("activerecord") as IConfigurationSource;
<br>            ActiveRecordStarter.Initialize(source, typeof(Login)); 
<br>        } 
<br>总是报错说,找不到类型或命名空间名称Login(是否缺少using指令或程序集引用)
<br>实际上启动程序和Login在同一个命名空间namespace ConCastle 它的下面,
<br><span>渴望得到高人指点. <a href="mailto:%E6%88%91%E7%9A%84Email:wangqiaoli649@sina.com,%E5%85%88%E8%B0%A2%E8%B0%A2%E5%90%84%E4%BD%8D%E4%BA%86%21" class="smarterwiki-linkify">我的Email:wangqiaoli649@sina.com,先谢谢各位了!</a></span></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("yolanda",780809,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(780809,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl71_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl71$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl71_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#780809">#137楼</a><a name="780809" id="comment_anchor_780809"></a>2007-06-12 17:15 | <a id="Comments1_CommentList_ctl71_NameLink" target="_blank">yolanda[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_780809" class="blog_comment_body">请问，如何执行test，我专门建立了usertest.cs类，把test方法都放在这个类中。用nunit测试，就会出现activerecordstarter没有initialize的错误。但是，直接执行程序是没有错误的呀！我的activeRecord 的initialize的操作是放在global.asax的application_start中的</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("king2003",781411,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(781411,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl72_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl72$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl72_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#781411">#138楼</a><a name="781411" id="comment_anchor_781411"></a>2007-06-13 09:51 | <a id="Comments1_CommentList_ctl72_NameLink" target="_blank">king2003[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_781411" class="blog_comment_body">不喜欢ActiveRecord这种把数据操作方法和业务实体写在一起的方式，这种方式写多个实体更新的事务比较麻烦。我也有同感</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("条码,条形码,条码打印机,条码扫瞄枪,标签,碳带,条码解决方案",782817,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(782817,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl73_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl73$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl73_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#782817">#139楼</a><a name="782817" id="comment_anchor_782817"></a>2007-06-13 23:39 | <a id="Comments1_CommentList_ctl73_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://www.erp-barcode.com" target="_top">条码,条形码,条码打印机,条码扫瞄枪,标签,碳带,条码解决方案[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_782817" class="blog_comment_body">经典啊</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("mp3che",793141,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(793141,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl74_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl74$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl74_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#793141">#140楼</a><a name="793141" id="comment_anchor_793141"></a>2007-06-22 14:40 | <a id="Comments1_CommentList_ctl74_NameLink" target="_blank">mp3che[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_793141" class="blog_comment_body">有原代码吗? 提供下载吧! 给大家看看吧!</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("zjw",800377,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(800377,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl75_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl75$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl75_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#800377">#141楼</a><a name="800377" id="comment_anchor_800377"></a>2007-06-29 16:23 | <a id="Comments1_CommentList_ctl75_NameLink" target="_blank">zjw[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_800377" class="blog_comment_body">查询的时候 Assert 个对象是从哪来的</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("firedemoning",841925,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(841925,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl76_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl76$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl76_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#841925">#142楼</a><a name="841925" id="comment_anchor_841925"></a>2007-08-03 16:11 | <a id="Comments1_CommentList_ctl76_NameLink" target="_blank">firedemoning[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_841925" class="blog_comment_body">下面代码中我把lastLogon注释掉,为什么就会出错
<br>public void AddUser()
<br>{
<br>    User user = new User();
<br>
<br>    user.Name = "Terrylee";
<br>    user.Password = "aaa";
<br><span>    user.Address = "<a href="mailto:lhj_cauc@163.com" class="smarterwiki-linkify">lhj_cauc@163.com</a>";
</span><br>   // user.LastLogon = DateTime.Now;  //注释掉,调试出错
<br>    
<br>    user.Create();
<br>}</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("firedemoning",842061,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(842061,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl77_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl77$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl77_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#842061">#143楼</a><a name="842061" id="comment_anchor_842061"></a>2007-08-03 17:23 | <a id="Comments1_CommentList_ctl77_NameLink" rel="nofllow" href="http://www.cnitblog.com/r.aspx?url=http://h.l-x@163.com" target="_top">firedemoning[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_842061" class="blog_comment_body">使用ActiveRecord框架是不是,数据库中的表一定要用主键.
<br>
<br>不然好像会出错.</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("ttt",878169,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(878169,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl78_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl78$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl78_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#878169">#144楼</a><a name="878169" id="comment_anchor_878169"></a>2007-09-01 12:07 | <a id="Comments1_CommentList_ctl78_NameLink" target="_blank">ttt[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_878169" class="blog_comment_body">写的好 写的好</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("风中劲草",925825,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(925825,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl79_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl79$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl79_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#925825">#145楼</a><a name="925825" id="comment_anchor_925825"></a>2007-10-16 10:43 | <a id="Comments1_CommentList_ctl79_NameLink" target="_blank">风中劲草[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_925825" class="blog_comment_body">请问下Castal里怎么调用存储过程啊 ？</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("kjwhzx",995993,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(995993,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl80_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl80$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl80_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#995993">#146楼</a><a name="995993" id="comment_anchor_995993"></a>2007-12-15 15:02 | <a id="Comments1_CommentList_ctl80_NameLink" target="_blank">kjwhzx[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_995993" class="blog_comment_body">
<br>网络心理咨询;首次咨询可先咨询后付款
<br>为需要心理帮助的朋友解决工作、社交、教育、家庭、婚恋等心理问题，缓释心理压力、化解心理冲突、处理负面情绪、调整心理状态、提高社会适应力；不受理人格障碍、精神疾病患者以及各种危机状态求助者。
<br>1、专业心理咨询;网络\电话心理咨询,每次３０至５０分钟；单次每次50元；三次以上每次35元。
<br>2、会员加入方式：付费咨询三次后，即升级为会员，可享受每次咨询35元的优惠价格；一次预付三次咨询费用（105元），即升级为会员，可享受每次35元优惠价格。
<br>3、在线\电话心理咨询,可随时QQ\手机进行预约。
<br><span>QQ:605178363&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机：13179936689  　<a href="mailto:Email:605178363@qq.com" class="smarterwiki-linkify">Email:605178363@qq.com</a>
</span><br>网址：<a href="http://hi.baidu.com/jiayuanxinlizixun%C2%A0%C2%A0" target="_new" rel="nofollow">http://hi.baidu.com/jiayuanxinlizixun&nbsp;&nbsp;</a>　　
<br>4、支付方式：支付宝、财富通， 建设银行卡、农业银行卡、工商银行卡	。
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("宗建",1041683,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1041683,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl81_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl81$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl81_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1041683">#147楼</a><a name="1041683" id="comment_anchor_1041683"></a>2008-01-16 17:31 | <a id="Comments1_CommentList_ctl81_NameLink" target="_blank">宗建[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1041683" class="blog_comment_body">//这是我自己编写的一个事例，有不对的地方希望您能帮我改正！
<br>namespace ARDemo
<br>{
<br>[ActiveRecord("xuesheng")]//指定数据库表名xusheng
<br>public class xuesheng:ActiveRecordBase
<br>{
<br> private int _id;
<br> private string _name;
<br> private string _banji;
<br> private _sfz;
<br> //指定字段名
<br>[PrimaryKey(PrimaryKeyType.Native,"xs_id")]
<br>public int Id//ID号
<br>   {
<br>      get{return _id;}
<br>      set{_id=value;}
<br>    }
<br>[property("xs_name"),ValidateNotEmpty]
<br> public  string Name //名字
<br> {
<br>       get{return _name;}
<br>       set{_name=value;}
<br>  }
<br>[Property("xs_banji")]
<br>pubic string  Banji//班级
<br>{
<br>    get{return _banji;}
<br>    set{_banji=value;}
<br>}
<br>[Property("xs_sfz"),ValidateNotEmpty]
<br>pubic string  Sfz//身份证号
<br>{
<br>    get{return _sfz;}
<br>    set{_sfz=value;}
<br>
<br>}
<br>private DateTime createDateTime;
<br>[Property(Update=false)]
<br>public DateTime CreateDateTime
<br>{
<br>	get{return createDateTime;}
<br>	set{createDateTime=value;}
<br>}
<br>[HasMany(typeof(Post),Table="posts",ColumnKey="post_blogid",Lazy=true)]
<br>//上面的话我还不明白什么意思，有什么作用，请前辈指教。应该填加到什么地方？？？？？？？？？？？？？？？？？？？？？？？？？？？？？
<br>public static void DeleAll()
<br>{
<br>	DeleteAll(typeof(xusheng));
<br>}
<br>public static xusheng[] FindAll()
<br>{
<br>	return(Blog[] FindAll(typeof(xusheng));
<br>}
<br>public static xuesheng Find (int id)
<br>{
<br>	return(xusheng)FindByPrimaryKey(typeof(xusheng),id);
<br>}
<br>}
<br>}
<br>public class ARTester
<br>{
<br>	public static void Test()
<br>	{
<br>		ActiveRecordStarter.Initialize(Assembly.GetExecutingAssembly(),new XmlConfigurationSource("ar.xml"));
<br>		ActiveRecordStarter.DropSchema();
<br>		ActiveRecordStarter.CreateSchema();
<br>		xusheng  xs=new xusheng();
<br>		xs.Id="1";
<br>		xs.Name="tom";
<br>		xs.Sfz="12233434343";
<br>		xs.CreateDateTime=DateTime.Now;
<br>		xusheng.Save();
<br>
<br>		Console.WriteLine(xusheng.CreateDateTime);
<br>		System.Threading.Thread.Sleep(2000);
<br>
<br>		xusheng xs2=xusheng.Find(user.id);
<br>		xs2.Name="abc";
<br>		xs2.CreateDateTime=DateTime.Now.AddDays(100);
<br>		xs2.Update();
<br>
<br>		xs.Refreash();
<br>		Console.WriteLine(xs.Name);
<br>		Console.WriteLine(xs.CreateDateTime);
<br>	}
<br>}</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("零缺陷生活",1204716,"z/upnGADiIAAfwlFCS0jjbudc5Hlcse0WTjDp2Qa1+wKAFTutyy1cQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1204716,"z/upnGADiIAAfwlFCS0jjbudc5Hlcse0WTjDp2Qa1+wKAFTutyy1cQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%9b%b6%e7%bc%ba%e9%99%b7%e7%94%9f%e6%b4%bb" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl82_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl82$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl82_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1204716">#148楼</a><a name="1204716" id="comment_anchor_1204716"></a>2008-05-21 12:22 | <a id="Comments1_CommentList_ctl82_NameLink" href="http://www.cnblogs.com/zerobug/" target="_top">零缺陷生活</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e9%9b%b6%e7%bc%ba%e9%99%b7%e7%94%9f%e6%b4%bb" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1204716" class="blog_comment_body">在使用下面的自定义类的实例时中,如何获取be.Id的PropertyAttribute??    
<br>
<br>BugETT be = new BugETT();
<br>
<br>    be.Id
<br>
<br> /////////////////////////////////////////////
<br>
<br>    [ActiveRecord("TB_BUG")]
<br>    public class BugETT
<br>    {
<br>        
<br>        private Int32 m_Id;
<br>        
<br>
<br>        public BugETT(){}
<br>
<br>
<br>        [Property("BUG_ID")]
<br>        public Int32 Id
<br>        {
<br>            get { return m_Id; }
<br>            set { m_Id = value; }
<br>        }
<br>
<br>}
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("oncoding",1213154,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1213154,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl83_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl83$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl83_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1213154">#149楼</a><a name="1213154" id="comment_anchor_1213154"></a>2008-05-29 21:57 | <a id="Comments1_CommentList_ctl83_NameLink" target="_blank">oncoding[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1213154" class="blog_comment_body">@qcrsoft
<br>user 是T-SQL的关键字。使用会有些麻烦。通常用users</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("西狐",1303637,"tYKtbevFEhmbsCrWj9rW3wnN6P2yak+UOhbt/GW7QTXPWWH539oKsw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1303637,"tYKtbevFEhmbsCrWj9rW3wnN6P2yak+UOhbt/GW7QTXPWWH539oKsw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%a5%bf%e7%8b%90" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl84_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl84$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl84_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1303637">#150楼</a><a name="1303637" id="comment_anchor_1303637"></a>2008-08-31 16:20 | <a id="Comments1_CommentList_ctl84_NameLink" href="http://www.cnblogs.com/hooyes/" target="_top">西狐</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e8%a5%bf%e7%8b%90" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1303637" class="blog_comment_body"> Castle.ActiveRecord.ActiveRecordStarter.Initialize(typeof(类).Assembly, source);
<br>这句初始化的作用是初始化些什么东西呢?</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",1305051,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1305051,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl85_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl85$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl85_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1305051">#151楼</a><a name="1305051" id="comment_anchor_1305051"></a>[<span class="louzhu">楼主</span>]2008-09-01 21:55 | <a id="Comments1_CommentList_ctl85_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1305051" class="blog_comment_body">@西狐
<br>初始化所有的业务实体类。。。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("夏斌",1323936,"UjKiom7UT1V/7aPWNcrT5GsHLvxDkMIGr/m/cWQFZSN/2H4LH/nlWg==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1323936,"UjKiom7UT1V/7aPWNcrT5GsHLvxDkMIGr/m/cWQFZSN/2H4LH/nlWg==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%a4%8f%e6%96%8c" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl86_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl86$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl86_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1323936">#152楼</a><a name="1323936" id="comment_anchor_1323936"></a>2008-09-22 22:18 | <a id="Comments1_CommentList_ctl86_NameLink" href="http://www.cnblogs.com/xiabin/" target="_top">夏斌</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e5%a4%8f%e6%96%8c" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1323936" class="blog_comment_body">非常感谢 TerryLee 大哥的文章</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("guihuomao",1325768,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1325768,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl87_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl87$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl87_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1325768">#153楼</a><a name="1325768" id="comment_anchor_1325768"></a>2008-09-24 17:22 | <a id="Comments1_CommentList_ctl87_NameLink" target="_blank">guihuomao[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1325768" class="blog_comment_body">null id in entry (don't flush the Session after an exception occurs) </span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("尘土飞扬",1359376,"hTfygJT+dP+AnTifGycgUwbPozyQO3wGd/Q+ogSv6FkdFgXfv0IdGA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1359376,"hTfygJT+dP+AnTifGycgUwbPozyQO3wGd/Q+ogSv6FkdFgXfv0IdGA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%b0%98%e5%9c%9f%e9%a3%9e%e6%89%ac" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl88_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl88$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl88_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1359376">#154楼</a><a name="1359376" id="comment_anchor_1359376"></a>2008-11-03 11:06 | <a id="Comments1_CommentList_ctl88_NameLink" href="http://www.cnblogs.com/itcsx/" target="_top">尘土飞扬</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e5%b0%98%e5%9c%9f%e9%a3%9e%e6%89%ac" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1359376" class="blog_comment_body">好象不實用吧，請參看我寫的實體類
<br><a href="http://www.cnblogs.com/itcsx" target="_new">http://www.cnblogs.com/itcsx</a>
<br>.Net應用企業系統實用架構系列------實體對象Model </span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("田景",1363170,"3TwU73N7b9vF297X5szxarN2YHsiVsNNf+4+l5Rk2BF6gML1xBI5QQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1363170,"3TwU73N7b9vF297X5szxarN2YHsiVsNNf+4+l5Rk2BF6gML1xBI5QQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e7%94%b0%e6%99%af" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl89_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl89$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl89_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1363170">#155楼</a><a name="1363170" id="comment_anchor_1363170"></a>2008-11-06 18:04 | <a id="Comments1_CommentList_ctl89_NameLink" href="http://www.cnblogs.com/ronotian/" target="_top">田景</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e7%94%b0%e6%99%af" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1363170" class="blog_comment_body">我总觉得在实体类中弄什么Create，Update等的操作显得是在不雅观。<br>另外实体类还需要继承ActiveRecordBase，更加显得不爽了。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",1363255,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1363255,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl90_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl90$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl90_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1363255">#156楼</a><a name="1363255" id="comment_anchor_1363255"></a>[<span class="louzhu">楼主</span>]2008-11-06 20:26 | <a id="Comments1_CommentList_ctl90_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1363255" class="blog_comment_body">@田景
<br>设计有多种形式，没有哪一种是放之四海而皆准的，呵呵</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("4978",1404526,"fFO1X3jfOuEaXMJgqfsc8mFuX1kofmDI/XKRqgeeR/lNgPELgskhYw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1404526,"fFO1X3jfOuEaXMJgqfsc8mFuX1kofmDI/XKRqgeeR/lNgPELgskhYw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=4978" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl91_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl91$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl91_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1404526">#157楼</a><a name="1404526" id="comment_anchor_1404526"></a>2008-12-17 11:20 | <a id="Comments1_CommentList_ctl91_NameLink" href="http://www.cnblogs.com/wang4978/" target="_top">4978</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/4978" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1404526" class="blog_comment_body">hello<br>我是用的VS2008,在程序里，IConfigurationSource source = System.Configuration.ConfigurationSettings.GetConfig("activerecord") as IConfigurationSource;<br>这里source得到的值是null，是什么原因的？<br><br>我的web.config 里是这样写的：&lt;configSections&gt;&lt;sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;<br>			&lt;sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;<br>				&lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;<br>        &lt;section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord"/&gt;<br>&lt;/sectionGroup&gt;<br>		&lt;/sectionGroup&gt;<br>	&lt;/configSections&gt;<br><br>困扰了好几天了，请教一下，呵呵</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",1404534,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1404534,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl92_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl92$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl92_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1404534">#158楼</a><a name="1404534" id="comment_anchor_1404534"></a>[<span class="louzhu">楼主</span>]2008-12-17 11:25 | <a id="Comments1_CommentList_ctl92_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1404534" class="blog_comment_body">@4978
<br>&lt;section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord"/&gt;
<br>应该放在configSections下面，而不是放在system.web.extensions的SectionGroup中。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("4978",1404662,"fFO1X3jfOuEaXMJgqfsc8mFuX1kofmDI/XKRqgeeR/lNgPELgskhYw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1404662,"fFO1X3jfOuEaXMJgqfsc8mFuX1kofmDI/XKRqgeeR/lNgPELgskhYw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=4978" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl93_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl93$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl93_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1404662">#159楼</a><a name="1404662" id="comment_anchor_1404662"></a>2008-12-17 12:55 | <a id="Comments1_CommentList_ctl93_NameLink" href="http://www.cnblogs.com/wang4978/" target="_top">4978</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/4978" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1404662" class="blog_comment_body">@TerryLee<br>OK了，谢谢了</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("小狼狗",1415078,"vA5xXtF4k2pV8ujUesDRQ3M3W/JKTC90cDN7P7vUiihtImhNYtz8iQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1415078,"vA5xXtF4k2pV8ujUesDRQ3M3W/JKTC90cDN7P7vUiihtImhNYtz8iQ==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%b0%8f%e7%8b%bc%e7%8b%97" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl94_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl94$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl94_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1415078">#160楼</a><a name="1415078" id="comment_anchor_1415078"></a>2008-12-27 11:32 | <a id="Comments1_CommentList_ctl94_NameLink" href="http://www.cnblogs.com/javabeanzhang/" target="_top">小狼狗</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/%e5%b0%8f%e7%8b%bc%e7%8b%97" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1415078" class="blog_comment_body">good </span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("TerryLee",1420507,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1420507,"K82dKaku/JiNNC/PeczvjL4gReWZAaP9pFNyUxpHUmhQUsdw4bZYEA==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=TerryLee" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl95_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl95$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl95_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1420507">#161楼</a><a name="1420507" id="comment_anchor_1420507"></a>[<span class="louzhu">楼主</span>]2009-01-04 11:29 | <a id="Comments1_CommentList_ctl95_NameLink" href="http://www.cnblogs.com/Terrylee/" target="_top">TerryLee</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/TerryLee" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1420507" class="blog_comment_body">@小狼狗
<br>:)</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("chuncn",1461443,"rGhCy4w6HENFSLCNjo/NVXhp6rWc/ErmZzYcgmdFJxuRIm2BuWs2Kw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1461443,"rGhCy4w6HENFSLCNjo/NVXhp6rWc/ErmZzYcgmdFJxuRIm2BuWs2Kw==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=chuncn" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl96_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl96$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl96_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1461443">#162楼</a><a name="1461443" id="comment_anchor_1461443"></a>2009-02-25 22:09 | <a id="Comments1_CommentList_ctl96_NameLink" href="http://www.cnblogs.com/chuncn/" target="_top">chuncn</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/chuncn" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1461443" class="blog_comment_body">本文的工具的地址可以告诉一下不，下载的是新版本的（CastleProject-1.0-RC3.msi），没有图中所示工具呀。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("没钱买烟啦",1517391,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1517391,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl97_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl97$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl97_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1517391">#163楼</a><a name="1517391" id="comment_anchor_1517391"></a>2009-05-02 17:46 | <a id="Comments1_CommentList_ctl97_NameLink" href="http://space.cnblogs.com/60082/" target="_top">没钱买烟啦</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1517391" class="blog_comment_body">
<br>   ActiveRecordStarter.Initialize(source, typeof(User));
<br>该句时老是提示:
<br>
<br>
<br>“Castle.ActiveRecord.Framework.Internal.ActiveRecordModelBuilder”的类型初始值设定项引发异常。
<br>
<br>
<br>配置文件没有错误,连接数据库没有错库,会是哪里呢?你能够告诉你,运行你这个,需要引用到Castle里的哪几个dll
<br></span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("jolboy",1660876,"mpg6jtmfqbyqXYOUBrLbu9rAyflyfKo/s5naiws3wnpb9yZ3euUz8w==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1660876,"mpg6jtmfqbyqXYOUBrLbu9rAyflyfKo/s5naiws3wnpb9yZ3euUz8w==")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=jolboy" target="_top">查看</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl98_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl98$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl98_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1660876">#164楼</a><a name="1660876" id="comment_anchor_1660876"></a>2009-09-28 16:53 | <a id="Comments1_CommentList_ctl98_NameLink" href="http://www.cnblogs.com/jolboy/" target="_top">jolboy</a>&nbsp;<a href="http://space.cnblogs.com/msg/send/jolboy" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1660876" class="blog_comment_body">想咨询一下，如果我是在页面上动态的创建表，及字段，那这些动态的表，如何去建出他们的实体类呢。。。</span><br>
			</div>
		</div>
	
		<div class="feedbackItem">
			<div class="feedbackListSubtitle">
				<div class="feedbackManage">
					&nbsp;&nbsp;<a onclick='ReplyComment("sanford",1708420,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">回复</a>&nbsp;&nbsp;<a onclick='QuoteComment(1708420,"")' href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html#commentform">引用</a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl99_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl99$DeleteLink','')"></a>&nbsp;&nbsp;<a id="Comments1_CommentList_ctl99_EditLink" causesvalidation="False"></a>
				</div>
				<a href="#1708420">#165楼</a><a name="1708420" id="comment_anchor_1708420"></a><a name="Post"></a>2009-11-27 10:19 | <a id="Comments1_CommentList_ctl99_NameLink" target="_blank">sanford[未注册用户]</a>
			</div>
			<div class="feedbackCon">
				<span id="comment_body_1708420" class="blog_comment_body">首先说说自己的感受吧 ，不针对 框架的好坏， 本人使用过 Hibernate，Ibitis.net 就自己的感觉来说这些ORM框架无非从数据库查询出来然后做一个Mapping然后匹配到类的各个属性上面，对于一般的查询，删除，修改来说这三个方法还是比较实用的，但是想一下如果数据库表格字段很多，我们每次查询就用 select是不是把这个表的字段都拿出来了，而真正需要的只是个别字段，这在Mapping的时候又通过发射来做，首先第一从数据库方面来说你查询的字段多了，是不是在物理磁盘上面的访问就多了，然后从数据库返回结果在网络传输上面是不是数据量增大了，而且内存方面是不是也因为一些没有必要的数据而膨胀了，最后到框架的Mapping过程当中是否也影响到Mapping的速度了（因为字段多），等等这些问题吧！框架能给我们提供一些方便，但是在某种程度上性能损失也是必然的。在自己经历的项目中只要我们用到反射的地方，头头们都比较反对，给我手工写，哈哈！</span><br>
			</div>
		</div>
	<div id="Comments1_TopPager"><div class="comment_pager">
	评论共2页:&nbsp;<a href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html?page=1#pagedcomment">上一页</a>&nbsp;<a href="http://terrylee.cnblogs.com/archive/2006/04/03/365762.html?page=1#pagedcomment">1</a>&nbsp;<span class="comment_pager_current">2</span>&nbsp;
</div></div>

<div id="ctl05_comment_form" class="commentform">




<div id="ctl05_divLoginPannel">
<div class="login_tips">注册用户登录后才能发表评论，请 <a href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f03%2f365762.html%3flogin%3d1%23commentform" class="underline">登录</a> 或 <a href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fterrylee.cnblogs.com%2farchive%2f2006%2f04%2f03%2f365762.html%23Bottom2" class="underline">注册</a> 。</div>
</div>

<div class="itnews c_ad_block" id="itnews">
<a href="http://news.cnblogs.com/" target="_top">IT新闻</a>:<br>

          ·  <a href="http://news.cnblogs.com/n/55114/" target="_top">谷歌联手亚马逊在英国推出Android音乐商店</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55112/" target="_top">Facebook成为Apache软件基金会黄金赞助商</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55111/" target="_top">IBM荣获2009年美国专利申请冠军</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55100/" target="_top">麦当劳美国餐馆Wi-Fi服务全面免费</a><br>
	
          ·  <a href="http://news.cnblogs.com/n/55097/" target="_top">Java SE 6更新，性能大幅提升</a><br>
	
</div>


<div id="ad_under_comment" class="c_ad_block">
<a href="http://a4.yeshj.com/rd/34138/" target="_top">每天10分钟，轻松学英语</a><br><br>
<div id="google_ads_div_cnblogs_blogpost_bottom1">
<iframe src="index_1.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom1" id="google_ads_iframe_cnblogs_blogpost_bottom1" scrolling="no" frameborder="0" height="60" width="468"></iframe></div>

<br>
<div id="google_ads_div_cnblogs_blogpost_bottom">
<iframe src="index_2.html" style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cnblogs_blogpost_bottom" id="google_ads_iframe_cnblogs_blogpost_bottom" scrolling="no" frameborder="0" height="250" width="300"></iframe></div>

</div>
<div id="site_nav_under" class="c_ad_block">
网站导航：<br>
<a href="http://www.cnblogs.com/" target="_top">博客园首页</a> &nbsp;<a href="http://news.cnblogs.com/" target="_top">IT新闻</a> &nbsp;<a href="http://home.cnblogs.com/" target="_top">个人主页</a> &nbsp;<a href="http://home.cnblogs.com/ing/" target="_top">闪存</a> &nbsp;<a href="http://job.cnblogs.com/" target="_top">程序员招聘</a> &nbsp;<a href="http://space.cnblogs.com/" target="_top">社区</a> &nbsp;<a href="http://space.cnblogs.com/q/" target="_top">博问</a> &nbsp;<a href="http://wz.cnblogs.com/" target="_top">网摘</a>
</div>
<div id="ad_under_comment2" class="c_ad_block">
<a href="http://www.china-pub.com/STATIC07/0912/zh_ndcx_091212.asp" target="_top"><img src="chinapub_20091222.jpg" alt="" style="border: 0px none ;"></a><br>
<a href="http://www.china-pub.com/itbook/" target="_top">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</a><br>
<a href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_top">China-Pub 计算机绝版图书按需印刷服务</a><br>
</div>

<div id="relative_search"><br><b>相关搜索:</b><br> <a href="http://zzk.cnblogs.com/s?w=%5b12%5d%e5%bc%80%e6%ba%90%e4%b8%96%e7%95%8c" target="_top">[12]开源世界</a> </div><div id="relative_search"><br><b>在知识库中查看：</b><br> <a href="http://kb.cnblogs.com/a/365762/">Castle ActiveRecord学习实践（1）：快速入门指南</a></div>

</div>


				
	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div class="box">
<h3 class="boxtitle">个人简介</h3>
<ul>
    <li><img src="o_terrylee.png" alt=""></li>
    <li>网名：TerryLee</li>
    <li>本名：李会军</li>
    <li>位置：中国 北京</li>
    <li>请大家发邮件至</li>
    <li><img src="o_terrylee_cnblogs.png" alt="TerryLee"></li>
   </ul>
</div>
<div class="box">
<h3 class="boxtitle">关注我</h3>
<a href="http://twitter.com/TerryLeeTech"><img src="followme.png" alt="在Twitter上关注我" style="margin-left: 5px;"></a>
<a href="http://www.dotneteye.cn/blog/syndication.axd"><img src="feedadd.png" alt="订阅我的Blog" style="margin-left: 15px;"></a>
</div>
<div class="box">
<h3 class="boxtitle">我的著作</h3>
<ul>
    <li><img alt="" src="o_silverlight02.jpg" border="0"></li>
    <li>官网：<a href="http://www.dotneteye.cn/silverlight">《Silverlight 2完美征程》</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">我在说</h3>
<ul id="twitter_update_list"></ul>
<a href="http://twitter.com/TerryLeeTech" id="twitter-link" style="display: block; text-align: right;">follow me on Twitter</a>
</div>
<div class="box">
<h3 class="boxtitle">MVP配置</h3>
<ul>
    <li><img alt="" src="o_o_mvp_horizontal_fullcolor_182_74.png" border="0"></li>
    <li><a href="https://mvp.support.microsoft.com/profile=8FECB25C-0CBC-432F-9F25-E2698DDF3CA1">MVP配置</a></li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">个人主页</h3>
<ul>
<li>
<a href="http://www.dotneteye.cn/"><img src="o_dotnet.png" alt=""></a>
</li>
</ul>
</div>
<div class="box">
<h3 class="boxtitle">版权声明</h3>
    <ul>
        <li>本站采用<a href="http://creativecommons.org/licenses/by-nc/2.5/" target="_top" rel="license">创作共用</a>许可
        署名，非商业
<a href="http://www.51.la/?00260513" target="_top"><img alt="51.la 专业、免费、强健的访问统计" src="icon_8.gif" style="border: medium none ;"></a>
<img style="width: 0px; height: 0px;" src="go.asp">
        </li></ul>
    </div>
<div class="box">
<h3 class="boxtitle">绿色通道</h3>
  <ul>
   <li>1.<a href="http://www.cnblogs.com/Terrylee/archive/2008/03/09/Silverlight2-step-by-step-Tutorials.html">一步一步学Silverlight 2系列</a></li>
<li>2.<a href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">.NET设计模式系列文章</a></li>
<li>3.<a href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/558683.html">ASP.NET AJAX入门系列</a></li>
<li>4.<a href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/387503.html">Castle开发系列文章</a></li>
<li>5.<a href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/464591.html">Enterprise Library系列</a></li>
<li><a href="http://dotnet.cnblogs.com/">博客园.NET频道</a></li>
  </ul>
</div><div id="profile_block"><a href="http://home.cnblogs.com/Terrylee/" target="_top">我的主页</a>&nbsp; <a href="http://home.cnblogs.com/Terrylee/detail/" target="_top">个人资料</a><br><a href="http://home.cnblogs.com/Terrylee/ing/" target="_top">我的闪存</a>&nbsp; <a href="http://space.cnblogs.com/msg/send/TerryLee" target="_top">发短消息</a></div>
</div>

			
			
			<div id="leftcontentcontainer">
				

<div class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div class="div_my_zzk"><input value="" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
</div>
<div class="catListPostCategory">
<h3 class="catListTitle">随笔分类</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/category/48779.html">[01]&nbsp;&nbsp;.NET大本营(50)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to [01]&amp;nbsp;&amp;nbsp;.NET大本营(50)" href="http://www.cnblogs.com/Terrylee/category/48779.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/category/161309.html">[02]&nbsp;&nbsp;探微知著CLR</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to [02]&amp;nbsp;&amp;nbsp;探微知著CLR" href="http://www.cnblogs.com/Terrylee/category/161309.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/category/78190.html">[03]&nbsp;&nbsp;银光点亮世界(62)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to [03]&amp;nbsp;&amp;nbsp;银光点亮世界(62)" href="http://www.cnblogs.com/Terrylee/category/78190.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/category/36734.html">[04]&nbsp;&nbsp;WCF后传(17)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to [04]&amp;nbsp;&amp;nbsp;WCF后传(17)" href="http://www.cnblogs.com/Terrylee/category/36734.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/category/36516.html">[05]&nbsp;&nbsp;架构与设计(24)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to [05]&amp;nbsp;&amp;nbsp;架构与设计(24)" href="http://www.cnblogs.com/Terrylee/category/36516.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/category/48778.html">[06]&nbsp;&nbsp;LINQ之美(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to [06]&amp;nbsp;&amp;nbsp;LINQ之美(4)" href="http://www.cnblogs.com/Terrylee/category/48778.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/category/115628.html">[07]&nbsp;&nbsp;AJAX风云(15)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_RssLink" title="Subscribe to [07]&amp;nbsp;&amp;nbsp;AJAX风云(15)" href="http://www.cnblogs.com/Terrylee/category/115628.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/category/37512.html">[08]&nbsp;&nbsp;Web开发(66)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_RssLink" title="Subscribe to [08]&amp;nbsp;&amp;nbsp;Web开发(66)" href="http://www.cnblogs.com/Terrylee/category/37512.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/category/124829.html">[09]&nbsp;&nbsp;依赖注入(14)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_RssLink" title="Subscribe to [09]&amp;nbsp;&amp;nbsp;依赖注入(14)" href="http://www.cnblogs.com/Terrylee/category/124829.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/category/36514.html">[10]&nbsp;&nbsp;模式与实践(68)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_RssLink" title="Subscribe to [10]&amp;nbsp;&amp;nbsp;模式与实践(68)" href="http://www.cnblogs.com/Terrylee/category/36514.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/category/48535.html">[11]&nbsp;&nbsp;数据持久(19)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_RssLink" title="Subscribe to [11]&amp;nbsp;&amp;nbsp;数据持久(19)" href="http://www.cnblogs.com/Terrylee/category/48535.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/category/53293.html">[12]&nbsp;&nbsp;开源世界(35)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_RssLink" title="Subscribe to [12]&amp;nbsp;&amp;nbsp;开源世界(35)" href="http://www.cnblogs.com/Terrylee/category/53293.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/category/44974.html">[13]&nbsp;&nbsp;代码生成(23)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_RssLink" title="Subscribe to [13]&amp;nbsp;&amp;nbsp;代码生成(23)" href="http://www.cnblogs.com/Terrylee/category/44974.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/category/48958.html">[14]&nbsp;&nbsp;测试与重构(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_RssLink" title="Subscribe to [14]&amp;nbsp;&amp;nbsp;测试与重构(3)" href="http://www.cnblogs.com/Terrylee/category/48958.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/category/124830.html">[15]&nbsp;&nbsp;工作流基础</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_RssLink" title="Subscribe to [15]&amp;nbsp;&amp;nbsp;工作流基础" href="http://www.cnblogs.com/Terrylee/category/124830.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/category/162553.html">[16]&nbsp;&nbsp;技术曲苑杂坛(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_RssLink" title="Subscribe to [16]&amp;nbsp;&amp;nbsp;技术曲苑杂坛(1)" href="http://www.cnblogs.com/Terrylee/category/162553.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/category/160783.html">[17]&nbsp;&nbsp;并行编程(1)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_RssLink" title="Subscribe to [17]&amp;nbsp;&amp;nbsp;并行编程(1)" href="http://www.cnblogs.com/Terrylee/category/160783.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/category/58451.html">[18]&nbsp;&nbsp;动态语言(4)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_RssLink" title="Subscribe to [18]&amp;nbsp;&amp;nbsp;动态语言(4)" href="http://www.cnblogs.com/Terrylee/category/58451.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/category/187123.html">[19] 写作生涯(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_RssLink" title="Subscribe to [19] 写作生涯(2)" href="http://www.cnblogs.com/Terrylee/category/187123.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/category/36735.html">[20]&nbsp;&nbsp;推荐系列(32)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_RssLink" title="Subscribe to [20]&amp;nbsp;&amp;nbsp;推荐系列(32)" href="http://www.cnblogs.com/Terrylee/category/36735.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/category/36515.html">[21]&nbsp;&nbsp;数据库相关(18)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_RssLink" title="Subscribe to [21]&amp;nbsp;&amp;nbsp;数据库相关(18)" href="http://www.cnblogs.com/Terrylee/category/36515.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/category/43288.html">[30]&nbsp;&nbsp;前沿报道(28)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_RssLink" title="Subscribe to [30]&amp;nbsp;&amp;nbsp;前沿报道(28)" href="http://www.cnblogs.com/Terrylee/category/43288.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/category/36511.html">[31]&nbsp;&nbsp;项目管理(3)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_RssLink" title="Subscribe to [31]&amp;nbsp;&amp;nbsp;项目管理(3)" href="http://www.cnblogs.com/Terrylee/category/36511.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/category/148211.html">[32]&nbsp;&nbsp;我点我评(2)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_RssLink" title="Subscribe to [32]&amp;nbsp;&amp;nbsp;我点我评(2)" href="http://www.cnblogs.com/Terrylee/category/148211.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/category/51852.html">[33]&nbsp;&nbsp;我思我考(13)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_RssLink" title="Subscribe to [33]&amp;nbsp;&amp;nbsp;我思我考(13)" href="http://www.cnblogs.com/Terrylee/category/51852.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/category/51900.html">[34]&nbsp;&nbsp;社区活动(9)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl26_RssLink" title="Subscribe to [34]&amp;nbsp;&amp;nbsp;社区活动(9)" href="http://www.cnblogs.com/Terrylee/category/51900.html/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/category/36507.html">[35]&nbsp;&nbsp;东拉西扯(37)</a> <a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl27_RssLink" title="Subscribe to [35]&amp;nbsp;&amp;nbsp;东拉西扯(37)" href="http://www.cnblogs.com/Terrylee/category/36507.html/rss">(rss)</a></li>

</ul>

</div>

<div class="catListPostArchive">
<h3 class="catListTitle">随笔档案</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/08.html">2009年8月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl02_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/05.html">2009年5月 (1)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl03_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/04.html">2009年4月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl04_Link" href="http://www.cnblogs.com/Terrylee/archive/2009/01.html">2009年1月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl05_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/12.html">2008年12月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl06_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/11.html">2008年11月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl07_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/10.html">2008年10月 (12)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl08_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/09.html">2008年9月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl09_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/08.html">2008年8月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl10_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/07.html">2008年7月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl11_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/06.html">2008年6月 (10)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl12_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/03.html">2008年3月 (41)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl13_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/02.html">2008年2月 (5)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl14_Link" href="http://www.cnblogs.com/Terrylee/archive/2008/01.html">2008年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl15_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/12.html">2007年12月 (15)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl16_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/11.html">2007年11月 (7)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl17_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/07.html">2007年7月 (3)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl18_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/04.html">2007年4月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl19_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/03.html">2007年3月 (4)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl20_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/02.html">2007年2月 (2)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl21_Link" href="http://www.cnblogs.com/Terrylee/archive/2007/01.html">2007年1月 (6)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl22_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/12.html">2006年12月 (18)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl23_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/11.html">2006年11月 (32)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl24_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/10.html">2006年10月 (35)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl25_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/09.html">2006年9月 (19)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl26_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/08.html">2006年8月 (16)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl27_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/07.html">2006年7月 (23)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl28_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/06.html">2006年6月 (11)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl29_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/05.html">2006年5月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl30_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/04.html">2006年4月 (24)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl31_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/03.html">2006年3月 (17)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl32_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/02.html">2006年2月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl33_Link" href="http://www.cnblogs.com/Terrylee/archive/2006/01.html">2006年1月 (13)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl34_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/12.html">2005年12月 (38)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl35_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/11.html">2005年11月 (20)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl36_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/10.html">2005年10月 (27)</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl01_LinkList_ctl37_Link" href="http://www.cnblogs.com/Terrylee/archive/2005/09.html">2005年9月 (10)</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">个人站点</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_Link" href="http://terrylee.blog.51cto.com/" target="_top">TerryLee @ 51CTO</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl01_RssLink" title="Subscribe to TerryLee @ 51CTO" href="http://terrylee.blog.51cto.com/">(rss)</a></li>
<li style="margin-top: 2px;">我在51CTO的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_Link" href="http://weblogs.asp.net/TerryLee/" target="_top">TerryLee @ ASP.NET</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl02_RssLink" title="Subscribe to TerryLee @ ASP.NET" href="http://weblogs.asp.net/terrylee/rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在ASP.NET网站</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_Link" href="http://space.itpub.net/12184684/" target="_top">TerryLee @ IT168</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl03_RssLink" title="Subscribe to TerryLee @ IT168" href="http://space.itpub.net/12184684/action-rss-type-">(rss)</a></li>
<li style="margin-top: 2px;">我在IT168的镜像</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_Link" href="http://blog.joycode.com/terrylee/" target="_top">TerryLee @ 博客堂</a> <a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl04_RssLink" title="Subscribe to TerryLee @ 博客堂" href="http://blog.joycode.com/terrylee/Rss.aspx">(rss)</a></li>
<li style="margin-top: 2px;">我在博客堂的一片天地</li>
<li><a id="SingleColumn1_Categories_CatList_ctl02_LinkList_ctl05_Link" href="http://www.dotneteye.cn/" target="_top">个人主页</a> </li>

</ul>

</div>

<div class="catList">
<h3 class="catListTitle">我的好友</h3>

<ul>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_Link" href="http://chwkai.cnblogs.com/" target="_top">Aero</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl01_RssLink" title="Subscribe to Aero" href="http://chwkai.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_Link" href="http://anchky.cnblogs.com/" target="_top">anchky</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl02_RssLink" title="Subscribe to anchky" href="http://anchky.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_Link" href="http://www.cnblogs.com/anytao">Anytao</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl03_RssLink" title="Subscribe to Anytao" href="http://www.cnblogs.com/anytao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_Link" href="http://www.cnblogs.com/autumoon" target="_top">Autumoon</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl04_RssLink" title="Subscribe to Autumoon" href="http://www.cnblogs.com/Autumoon/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_Link" href="http://www.cnblogs.com/renrenqq/" target="_top">DDL</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl05_RssLink" title="Subscribe to DDL" href="http://www.cnblogs.com/renrenqq/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_Link" href="http://dflying.cnblogs.com/" target="_top">Dflying Chen</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl06_RssLink" title="Subscribe to Dflying Chen" href="http://dflying.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_Link" href="http://dudu.cnblogs.com/" target="_top">Dudu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl07_RssLink" title="Subscribe to Dudu" href="http://dudu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_Link" href="http://perhaps.cnblogs.com/" target="_top">Fantasy Soft</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl08_RssLink" title="Subscribe to Fantasy Soft" href="http://perhaps.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_Link" href="http://idior.cnblogs.com/" target="_top">idior</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl09_RssLink" title="Subscribe to idior" href="http://idior.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_Link" href="http://www.cnblogs.com/jessequ" target="_top">JesseQu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl10_RssLink" title="Subscribe to JesseQu" href="http://www.cnblogs.com/jessequ/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_Link" href="http://www.cnblogs.com/Jillzhang" target="_top">Jillzhang</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl11_RssLink" title="Subscribe to Jillzhang" href="http://www.cnblogs.com/jillzhang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_Link" href="http://kid-li.cnblogs.com/" target="_top">kid-li</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl12_RssLink" title="Subscribe to kid-li" href="http://kid-li.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_Link" href="http://luking.cnblogs.com/" target="_top">luking</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl13_RssLink" title="Subscribe to luking" href="http://luking.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_Link" href="http://www.cnblogs.com/michellehu" target="_top">MichelleHu</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl14_RssLink" title="Subscribe to MichelleHu" href="http://www.cnblogs.com/michellehu/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_Link" href="http://blog.csdn.net/priderock" target="_top">PrideRock的专栏</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl15_RssLink" title="Subscribe to PrideRock的专栏" href="http://feeds.feedsky.com/csdn.net/PrideRock">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_Link" href="http://www.cnblogs.com/isuper/" target="_top">RogerTong </a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl16_RssLink" title="Subscribe to RogerTong " href="http://www.cnblogs.com/isuper/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_Link" href="http://www.cnblogs.com/Sunmoonfire" target="_top">Sunmoonfire</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl17_RssLink" title="Subscribe to Sunmoonfire" href="http://www.cnblogs.com/Sunmoonfire/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_Link" href="http://www.cnblogs.com/teddyma" target="_top">Teddy</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl18_RssLink" title="Subscribe to Teddy" href="http://www.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_Link" href="http://www.cnblogs.com/wayfarer" target="_top">wayfarer</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl19_RssLink" title="Subscribe to wayfarer" href="http://www.cnblogs.com/wayfarer/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_Link" href="http://hjf1223.cnblogs.com/" target="_top">阿不</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl20_RssLink" title="Subscribe to 阿不" href="http://hjf1223.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_Link" href="http://www.cnblogs.com/bvbook" target="_top">博文视点官方博客</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl21_RssLink" title="Subscribe to 博文视点官方博客" href="http://www.cnblogs.com/bvbook/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_Link" href="http://www.cnblogs.com/herohuo" target="_top">大人物中的小人物</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl22_RssLink" title="Subscribe to 大人物中的小人物" href="http://www.cnblogs.com/herohuo/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_Link" href="http://www.cnblogs.com/dingxue" target="_top">丁学</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl23_RssLink" title="Subscribe to 丁学" href="http://www.cnblogs.com/dingxue/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_Link" href="http://www.cnblogs.com/guaiguai/" target="_top">怪怪</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl24_RssLink" title="Subscribe to 怪怪" href="http://www.cnblogs.com/guaiguai/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_Link" href="http://www.cnblogs.com/callwangxiang" target="_top">蜡笔小巢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl25_RssLink" title="Subscribe to 蜡笔小巢" href="http://www.cnblogs.com/callwangxiang/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_Link" href="http://www.cnblogs.com/waxdoll/" target="_top">蜡人张</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl26_RssLink" title="Subscribe to 蜡人张" href="http://waxdoll.cnblogs.com/Rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_Link" href="http://www.cnblogs.com/jeffreyzhao" target="_top">老赵</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl27_RssLink" title="Subscribe to 老赵" href="http://www.cnblogs.com/JeffreyZhao/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_Link" href="http://www.joygee.com/" target="_top">李茹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl28_RssLink" title="Subscribe to 李茹" href="feed://http//www.joygee.com/feed/">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_Link" href="http://www.agilelabs.cn/blogs/linkin/default.aspx" target="_top">卢彦</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl29_RssLink" title="Subscribe to 卢彦" href="http://www.agilelabs.cn/blogs/linkin/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_Link" href="http://zhenyulu.cnblogs.com/" target="_top">吕震宇</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl30_RssLink" title="Subscribe to 吕震宇" href="http://zhenyulu.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_Link" href="http://www.cnblogs.com/lbq1221119" target="_top">罗炳桥</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl31_RssLink" title="Subscribe to 罗炳桥" href="http://www.cnblogs.com/lbq1221119/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_Link" href="http://lixianhuei.cnblogs.com/" target="_top">难得一蠢</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl32_RssLink" title="Subscribe to 难得一蠢" href="http://lixianhuei.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_Link" href="http://birdshome.cnblogs.com/" target="_top">鸟食轩</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl33_RssLink" title="Subscribe to 鸟食轩" href="http://birdshome.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_Link" href="http://bear-study-hard.cnblogs.com/" target="_top">努力学习的熊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl34_RssLink" title="Subscribe to 努力学习的熊" href="http://bear-study-hard.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_Link" href="http://blog.donews.com/crabhn/" target="_top">螃蟹</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl35_RssLink" title="Subscribe to 螃蟹" href="http://blog.donews.com/crabhn/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_Link" href="http://crysta10203.blog.sohu.com/" target="_top">水晶心情</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl36_RssLink" title="Subscribe to 水晶心情" href="http://tb.sogou.com/rss?ch=it&amp;desc=%CB%D1%BA%FC%B2%A9%BF%CD%B6%A9%D4%C4&amp;url=http://crysta10203.blog.sohu.com/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_Link" href="http://xh831213.cnblogs.com/" target="_top">小寒</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl37_RssLink" title="Subscribe to 小寒" href="http://xh831213.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_Link" href="http://overred.cnblogs.com/" target="_top">雁儿飞飞</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl38_RssLink" title="Subscribe to 雁儿飞飞" href="http://overred.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_Link" href="http://www.cnblogs.com/justinyoung" target="_top">杨正祎</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl39_RssLink" title="Subscribe to 杨正祎" href="http://www.cnblogs.com/JustinYoung/rss">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_Link" href="http://goodcandle.cnblogs.com/" target="_top">源码工作室</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl40_RssLink" title="Subscribe to 源码工作室" href="http://goodcandle.cnblogs.com/rss.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_Link" href="http://www.cnblogs.com/msdpe/" target="_top">张大磊</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl41_RssLink" title="Subscribe to 张大磊" href="http://www.cnblogs.com/msdpe/RSS.aspx">(rss)</a></li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl42_Link" href="http://www.cyworld.com.cn/qiansui" target="_top">张莹</a> </li>

<li><a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_Link" href="http://www.cnblogs.com/zhouyinhui" target="_top">周银辉</a> <a id="SingleColumn1_Categories_CatList_ctl03_LinkList_ctl43_RssLink" title="Subscribe to 周银辉" href="http://www.cnblogs.com/zhouyinhui/rss">(rss)</a></li>

</ul>

</div>



<div class="catListBlogRank">
<h3 class="catListTitle">积分与排名</h3>
<ul>
	<li class="liScore">
		积分 -	5250874
	</li><li class="liRank">
		排名 -	3
	</li>
</ul>
</div>



<div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">1.&nbsp;.NET设计模式系列文章(240785)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">2.&nbsp;ASP.NET AJAX入门系列(162046)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">3.&nbsp;强烈推荐：240多个jQuery插件(160249)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(94439)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">5.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(88540)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">6.&nbsp;Enterprise Library系列文章回顾与总结(87348)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">7.&nbsp;Castle 开发系列文章(87221)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">8.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(85295)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/09/28/246050.html">9.&nbsp;今天下午真郁闷……(79632)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">10.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(73903)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/24/ASPNET_AJAX_Quick_Starts_Overview.html">11.&nbsp;ASP.NET AJAX入门系列（1）：概述(67798)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">12.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(49550)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">13.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(47209)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">14.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(44878)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">15.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(44506)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293465.html">16.&nbsp;.NET设计模式（1）：开篇(36398)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/14/254631.html">17.&nbsp;Enterprise Library Step By Step系列（一）：配置应用程序块——入门篇(36023)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/19/299878.html">18.&nbsp;.NET设计模式（4）：建造者模式（Builder Pattern）(34152)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/28/306254.html">19.&nbsp;CodeSmith开发系列资料总结(30459)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/12/01/OpenSource_Framework_And_Resource_Recommendation_Overview.html">20.&nbsp;.NET开源项目介绍及资源推荐：序(30351)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl21_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part2.html">21.&nbsp;一步一步学Silverlight 2系列（2）：基本控件(29159)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl22_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/27/ASPNET_AJAX_ScriptManagerProxy.html">22.&nbsp;ASP.NET AJAX入门系列（3）：使用ScriptManagerProxy控件(28846)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl23_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/09/01/atlas_series_articles.html">23.&nbsp;Atlas学习手记系列(28339)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl24_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">24.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(28231)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl02_TopList_ctl25_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/01/ASPNET_AJAX_UpdatePanle_Part2.html">25.&nbsp;ASP.NET AJAX入门系列（5）：使用UpdatePanel控件（二）(27899)</a>
			</li>
		
			</ul>
		
</div>

<div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	
			<ul>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/10/13/253667.html">1.&nbsp;如何用SQLDMO在ASP.NET页面下实现数据库的备份与恢复(395)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html">2.&nbsp;.NET设计模式系列文章(355)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2009/01/05/LINQ-and-LINQ-to-SQL.html">3.&nbsp;不得不为LINQ说几句话，驳“LINQ已死”论(318)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/21/Silverlight2-step-by-step-Tutorials.html">4.&nbsp;一步一步学Silverlight 2系列文章(246)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310968.html">5.&nbsp;CodeSmith3.0开发资料下载(233)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl06_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/13/295965.html">6.&nbsp;.NET设计模式（3）：抽象工厂模式（Abstract Factory）(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl07_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/05/23/406688.html">7.&nbsp;新版设计模式手册[C#]下载(216)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl08_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/25/ASPNET_AJAX_ScriptManager.html">8.&nbsp;ASP.NET AJAX入门系列（2）：使用ScriptManager控件(179)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl09_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html">9.&nbsp;强烈推荐：240多个jQuery插件(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl10_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/11/12/ASPNET_AJAX_QuickStarts.html">10.&nbsp;ASP.NET AJAX入门系列(168)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl11_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/03/365762.html">11.&nbsp;Castle ActiveRecord学习实践（1）：快速入门指南(166)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl12_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/04/28/castl_ioc_article.html">12.&nbsp;Castle 开发系列文章(164)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl13_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/23/Observer_Pattern.html">13.&nbsp;.NET设计模式（19）：观察者模式（Observer Pattern）(162)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl14_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/08/01/Enterprise_Library.html">14.&nbsp;Enterprise Library系列文章回顾与总结(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl15_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/01/04/310716.html">15.&nbsp;.NET设计模式（5）：工厂方法模式（Factory Method）(158)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl16_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2005/12/09/293509.html">16.&nbsp;.NET设计模式（2）：单件模式（Singleton Pattern）(153)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl17_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/03/21/354972.html">17.&nbsp;天津.NET俱乐部成立了！(146)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl18_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2006/10/29/ASPNET_AJAX_UpdatePanel_Part1.html">18.&nbsp;ASP.NET AJAX入门系列（4）：使用UpdatePanel控件（一）(133)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl19_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2007/12/04/TemplateEngine-Smart-Code-Preview.html">19.&nbsp;基于模板引擎的代码生成器Smart Code预览(129)</a>
			</li>
		
			<li>
				<a id="SingleColumn1_ctl03_TopList_ctl20_Hyperlink1" href="http://www.cnblogs.com/Terrylee/archive/2008/03/07/Silverlight2-step-by-step-part1.html">20.&nbsp;一步一步学Silverlight 2系列（1）：创建一个基本的Silverlight应用(125)</a>
			</li>
		
			</ul>
		
</div>

			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright ©2010 TerryLee
	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->
    </form>
	
	
      
    
    
    
</body>
</html>
